Is there code to get web visitors IP address?

T

Trint Smith

Is there code to get web visitors IP address? I only want to know how
far our website reaches...
Any help is appreciated.
Thanks,
Trint

.Net programmer
(e-mail address removed)
 
T

Trint Smith

Thanks. This will do it:

Dim hostaddr As IPAddress
Dim strhost As String
Dim writeToo As String

strhost = Dns.GetHostName
hostaddr = Dns.Resolve(strhost).AddressList(0)
writeToo = hostaddr.ToString

Trint

.Net programmer
(e-mail address removed)
 

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

Top