How can I know, which interface will allow UPD connection? I get the list of all network interfaces like this:
Enumeration<NetworkInterface> networkInterfaceEnumeration = NetworkInterface.getNetworkInterfaces();
$ ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : myworld.com
IPv4 Address. . . . . . . . . . . : 10.219.1.157
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.219.0.1
Tunnel adapter isatap.myworld.com:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : myworld.com