VB2005 Web Service Question

  • Thread starter Thread starter Al Reid
  • Start date Start date
A

Al Reid

Is it possible to get either the IP Address or station name of the PC that has called a web method? If so, could you please point
me in the right direction.
 
Is it possible to get either the IP Address or station name of the PC that has called a web method?  If so, could you please point
me in the right direction.

Off hand I believe this will give you the requester's IP address:

HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
rowe_newsgroups said:
Off hand I believe this will give you the requester's IP address:

HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/

Thanks, Seth. I also found that

Me.Context.Request.UserHostAddress



seems to work within my local network. I sent a link to our partner on the other side of the T1 line to test if the correct IP
address arrives after passing through the routers and firewalls.
 
Back
Top