K
kimiraikkonen
Hi,
I'm connected through router and i have a local ip address as well
starting with 192.168.x.x. However i can read local ip address fine
with that code:
Dim strHostName As String
Dim strIPAddress As String
strHostName = System.Net.Dns.GetHostName()
strIPAddress =
System.Net.Dns.Resolve(strHostName).AddressList(0).ToString()
MessageBox.Show("Host Name: " & strHostName & "; IP Address: " &
strIPAddress)
But i want to get the external IP, the IP between router and ISP (WAN
ip) in VB.NET using System.Net namespace which must be the same as
shown on "whatismyip.com".
What's the simpliest way?
Thanks
I'm connected through router and i have a local ip address as well
starting with 192.168.x.x. However i can read local ip address fine
with that code:
Dim strHostName As String
Dim strIPAddress As String
strHostName = System.Net.Dns.GetHostName()
strIPAddress =
System.Net.Dns.Resolve(strHostName).AddressList(0).ToString()
MessageBox.Show("Host Name: " & strHostName & "; IP Address: " &
strIPAddress)
But i want to get the external IP, the IP between router and ISP (WAN
ip) in VB.NET using System.Net namespace which must be the same as
shown on "whatismyip.com".
What's the simpliest way?
Thanks