B
BobAchgill
How can I see what the IP address of the computer my code is running on
programmatically?
I have tried something someone gave me but it seems to be obsolete (there is
a wavy blue line under the "myip.Address." ) and returns a number that does
not appear to be a IP address. It does not have periods "." in it.
This is what I am using now.
Thanks!
Bob
-----
Dim myip As Net.IPAddress
myip =
Net.Dns.GetHostByName(Environment.MachineName).AddressList(0)
Dim IPAddress As String
IPAddress = myip.Address.ToString
programmatically?
I have tried something someone gave me but it seems to be obsolete (there is
a wavy blue line under the "myip.Address." ) and returns a number that does
not appear to be a IP address. It does not have periods "." in it.
This is what I am using now.
Thanks!
Bob
-----
Dim myip As Net.IPAddress
myip =
Net.Dns.GetHostByName(Environment.MachineName).AddressList(0)
Dim IPAddress As String
IPAddress = myip.Address.ToString