How to list all IP addresses for a computer using JavaScript Now, let us try to develop a simple script (JavaScript) which shows the technique for retrieving all of the IP addresses for a computer. The entire code for the sample is as follows:
While its been known for over 7 years that Java applets can access a local IP, it seems people are "rediscovering" it. It also seems these same people never heard of LiveConnect, allowing Netscape derived browsers to directly instantiate Java objects. To be fair, this is rather obscure. I only know about because I had a project my freshmen year at GaTech controlling an Applet with JavaScript so this was kind of old hat. Anyway, as noted this does not works with IE. But I came across this link on how to do it in IE. LiveConnect is not being used, instead a weird ActiveX object is instantiated and queried. Grabbing local IPs with JavaScript and IE |