Create an Account
username: password:
 
  MemeStreams Logo

Grabbing local IPs with JavaScript and IE

search

Acidus
Picture of Acidus
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Acidus's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
Grabbing local IPs with JavaScript and IE
Topic: Miscellaneous 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.

Grabbing local IPs with JavaScript and IE



 
 
Powered By Industrial Memetics
RSS2.0