How can i get a client's IP Adress

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing a shopping site. I want to determine a client's IP Adress who
visits to store in a database for security reasons. How can i do that?

Thanks...
 
Request.UserHostAddress.ToString

Test this with proxy-servers between client and server!
We tried something similar once, but we always got the address
of the proxyserver of the hosting center!

Hans Kesting
 
Hans said:
Test this with proxy-servers between client and server!
We tried something similar once, but we always got the address
of the proxyserver of the hosting center!

That's why they call it proxy ;-)

Some proxies forward the original IP address using a special HTTP
header like X-Forwarded-For.

Cheers,
 
Back
Top