Find Visitors IP Address




Find Visitors IP Address
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:- 

  1. Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)   
  2.     txtIP.Text = Request.ServerVariables("REMOTE_ADDR")   
  3. End Sub  
You could then include this IP address in applications such as contact us pages where an email is sent.


No one has said that they like article yet, be the first and click here (0)
Send a link to this page via email Send a link to this page