E
Ed Willis
We have several offices that have a DSL or Cable modem where the IP address
is dynamic and changes often. I created a VB app that obtains the IP address
but it obtains the IP address within the firewall and we need the public IP
address of the machine outside the firewall so we can use Remote Desktop
connection for problem resolution etc.
Here is my current code:
Dim myWorkstation As String = System.Net.Dns.GetHostName()
Dim IPAdress As String =
System.Net.Dns.Resolve(myWorkstation).AddressList(0).ToString
Dim MachineName As String = Environment.MachineName
How can I obtain the other IP address?
Thanks.
is dynamic and changes often. I created a VB app that obtains the IP address
but it obtains the IP address within the firewall and we need the public IP
address of the machine outside the firewall so we can use Remote Desktop
connection for problem resolution etc.
Here is my current code:
Dim myWorkstation As String = System.Net.Dns.GetHostName()
Dim IPAdress As String =
System.Net.Dns.Resolve(myWorkstation).AddressList(0).ToString
Dim MachineName As String = Environment.MachineName
How can I obtain the other IP address?
Thanks.