Getting users IP

n3mesis125

New member
Joined
Dec 11, 2008
Messages
2
Programming Experience
5-10
Hey Folks,

New to the forums :) Not sure where to find this but how would i get the users IP address using VS Studio 2008 VB.

Shane.
 
You can ask them. Clarify your question to get more precise answer.
 
I'm looking to get the users external IP, not their local one (i'm not looking for the 192.168.0.1 but their external IP).
 
I have a proxy server I've got to deal with. If you don't have one you can remove the wc.Proxy.Credentials line.

VB.NET:
		Dim wc As New Net.WebClient

		wc.Headers(HttpRequestHeader.UserAgent) = "My Company Name"
		wc.Proxy.Credentials = New NetworkCredential("MyUsername", "MyPassword", "MyDomain")

		Dim ipAddress As String = wc.DownloadString("http://whatismyip.org/")

		MessageBox.Show(ipAddress)
 
I know what "external ip" means, but we have absolutely no clue what you are doing and in what context, you haven't even posted in a platform specific forum. Web page? Windows application? Sockets? huh?
 
Back
Top