For some reason, using EasyTCP give a wrong LocalAddress. The address it provides is 192.168.56.1 That is not on the list provided by the router, and is not possible (at least I do not think so) to connect to my network which is 192.168.1.1 for router…
What could I be doing wrong, or is this a problem with Xojo? I am using 2017R3 compiled to windows 32 bit console app, running on windows 10.
[quote=374811:@Tim Seyfarth]Using a new Instance of NetworkInterface yields the same result - same IP. This is really really strange.
Dim n As NetworkInterface = System.GetNetworkInterface(0)
Print "Network_Interface = " + N.IPAddress + " " + Tbl + ".Connected_EventHandler LINE "
I don’t see a way there can be the same local IP on two different networks with different address setups 192.168.1.n VS 192.168.0.n
Makes no sense…
Ideas anyone??
Tim[/quote]
Youd need to check the network mask for one thing. Theyre probably all 255.255.255.0 (or /24). But anyhow, it is certainly possible to have more than one local IP address. They can either be on different physical or different virtual network interfaces.
When looking at NetworkInterface, you should iterate through them all instead of just looking at index 0.
Thank you Peter.
Eventhough VM was not running, a component must have been - I thought I killed all components but still had the same problem. Following an un-install, that IP has disappeared!
@Greg - How to know which IP is really mine then? ie if there are 3 IP’s, which there probably was (one for wireless, one for wired and one for VMWare) how would I know which is really mine?