Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: Grabbing local IPs with JavaScript and IE. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

Grabbing local IPs with JavaScript and IE
by Acidus at 12:27 pm EST, Mar 6, 2007

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.


 
 
Powered By Industrial Memetics