Request.ServerVariables("REMOTE_ADDR") will return the IP that the http
request comes from. This is not necessarily the primary IP of the primary
NIC in the computer with the browser. It could be a firewall, a proxy
server, a router, etc., but this may not matter.
ip.asp:
<%
Response.Write "Your IP address is " &
Request.ServerVariables("REMOTE_ADDR")
%>
Ray at home
"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:Ot**************@TK2MSFTNGP10.phx.gbl...
Hey guys thanks again, the consensus is that the server has to handle this
and not the client side. I had hoped to avoid this in order to cut down on
processing overhead but that's life.
Larry
"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Is it possible to grab a client side IP Address using JavaScript in an
htm page? I have a web page hosted on a non-ASP server and I want a piece of
code in JavaScript to grab the IP address of the client and send it to a
web page on another server. The other page will be ASP.
I need this for both Netscape and IE browsers.
Any ideas?