ASP.Net 2.0 Webservice and IP adress

  • Thread starter Thread starter Bit Byte
  • Start date Start date
B

Bit Byte

I am writing a little web service - and would like to use the IP adress
of the machine that sent the request (along with other data) as part of
my security checks.

Does anyone know how I may obtain the IP address ?
 
I am writing a little web service - and would like to use the IP adress of
the machine that sent the request (along with other data) as part of my
security checks.

Does anyone know how I may obtain the IP address ?

Request.ServerVariables ["REMOTE_ADDR"]

To pre-empt your next question, if the user is behind a proxy you get the
proxy address, there is no way to get the client's address.
 
Back
Top