Find Visitors IP Address
Thursday 05 October 2006
To find a visitors IP Address it's actually quite simple.
In your vb code you can use Request.ServerVariables("REMOTE_ADDR") to display the ip address of the person viewing you web page.
An example of this would be:-
- Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
- txtIP.Text = Request.ServerVariables("REMOTE_ADDR")
- End Sub
You could then include this IP address in applications such as
contact us pages where an email is sent.
|
(0)
|
|
|