Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting IP address from Web Service

Status
Not open for further replies.

Trusts

Programmer
Feb 23, 2005
268
0
0
US
Hi,

I have a web service. I need to log the IP addresses from the calls being made to the service. I have this line of code in the web method:


Dim StrIncomingIP As String = HttpContext.Current.Request.UserHostAddress.ToString

But nothing comes through. Anyone know what to alter in this code, or have some other method?

Thanks,
KB
 
But what type would I declare that as? Not string?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top