On Fri, 23 Sep 2005 22:53:53 +0530, "Prabhat" <no********@hotmail.com> wrote:
Hi All,
I am trying to get the IP address of the Client machine and using the code:
Response.Write(Request.ServerVariables("REMOTE_AD DR"))
But I only get 127.0.0.1
It should be giving the IP address of the system or the gateway. How can I
get that. Please help.
Thanks
Prabhat
Well that should work ( it does when I created this page called WhereFrom.asp:
<%
Response.Write(Request.ServerVariables("REMOTE_ADD R"))
%>
I placed it in a devfiles directory on our web server ( IIS 5) and, from my Client PC (using IE), went to
http://mywebserver/devfiles/WhereFrom.asp
and got my Client PC's IP address..
So I am at a loss to se why, if you followed similar steps, it should fail..