How can i get a client's IP Adress

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...
 
H

Hans Kesting

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
 
J

Joerg Jooss

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,
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top