Click to See Complete Forum and Search --> : Getting the client's IP address using JavaScript.....


anand_vijayan
May 13th, 1999, 12:34 AM
Hi,

I want to get the client's IP address for a particular reason. I tried using the command
Request.ServerVariables("REMOTE_ADDR")
but it is returning the proxy's IP address. I have to set the option "Skip proxy for local Intranet" to make this code work. Is there any way by which I can get the client machines IP address without doing anything to the proxy settings. Can get retrieve it using Javascript or some other kind of Client side scripting language.

Thank You in advance

Anand

V. Anand,
Flat No 201, DivyaSai Apts.,
64 Pragathi Nagar,
Yosufguda,
Hyderabad - 500 045.

Dan Haddix
May 13th, 1999, 02:19 AM
Client side scripts (JavaScript and VBScript) do not have access to IP addresses, because it is considered a security risk. A server side solution is your only hope. I sugest you go to http://www.htmlhelp.com/wwwboard/ and ask Liam Quin how to get past your server side problem (he is the local Pearl expert). Good Luck!!!