I just wrote a small script to determine local IP address of a machine

http://neilghosh.com/util/ip/

I have tested this only in firefox and working on the other browsers.