Retrieving of IP-Address within a WebService - How?

  • Thread starter Thread starter cha
  • Start date Start date
C

cha

Hi there,

how is it possible to retrieve the IP-Address of a user that requests
my Web-Service written in VB.NET (asmx)?

Any way to do this?

Thanks for any help in advance,

Christian Hartmann

P.S.: Thanks for the fish.... :-)
 
<WebMethod()> Public Function GetIP() As String
Return Context.Request.ServerVariables("Local_Addr")
End Function
 
I think it would be REMOTE_ADDR for a remote user

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

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