2
Answers

Getting the remote IP address of a visitor to my site

Ken Barrett

Ken Barrett

15y
3k
1
How can I get the IP address of a visitor to my site?

The documentation I can find on RemoteAddress is pretty confusing.

I found one item on the web showing :

string ip=Request.ServerVariables("REMOTE_ADDR");

But I get errors with that.  So I'm at a loss here.

TIA
Ken
Answers (2)
0
Madhu K

Madhu K

NA 2k 446k 14y
You can Update the textbox value using CheckBox CheckedChanged event.