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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top