Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read IP address of PC in IE

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am looking for a way to read the IP address of my PC in the IE Browser.

All suggestions appreciated!
Thx.
Joe
 
dont know that you can, you know you can go to the run menu and type winipcfg right?
 
Actually I need the Ip Address within a Javascript, which in turn uses it as an machine identification on web server. Can't use any manual way of doing it.

Joe
 
I need to get IP address in a Client javascript. The IP Address will then be sent to a web server and will be used as Client machine identification to help redirecting a multimedia stream to the client.

Thanks for your suggestion any way.

Joe
 
Is this application intended for a private network or the public Internet?

On the Internet, this approach will prove to be a problem on several fronts.

Technically, the growing use of NAT/PAT in homes with multipule computers means your chances of returning the wrong address (potentially a private address) from a client are increasing.

Ethically, the practice of picking up ANY information from the computer without full disclosure is similar to having a door-to-door salesman snoop in the closet while your getting him a drink of water. In the circles I run in, this practice would get your application black balled.

Picking up the IP Address of the client from their communications stream (as opposed to from their workstation) will make your application much more successful.
 
You can pick up the NAT/PAT address of the computer concerned but you cannot necessarily pick up the real IP address.

Try the JAVA or Dreamweaver forums for the code required, but I use plenty of sites that list my masqueraded IP address automatically.
 
You can use

ipaddress=Request.ServerVariables("REMOTE_ADDR")

from asp script... I have not failed, I just found 10000 ways that don't work

Peter Van Eeckhoutte
peter.ve@pandora.be

Did this post help ? Click below to let me know ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top