I try to implement a simple ServerSocket but when I ask for the IP address, it return the address of my VirtualBox Ethernet adapter instead of my real network IP address. How can I force it to use a particular Ethernet adapter?
In Control Panel / Network Connections, go to the menu "Advanced/Advanced Settings" and then change the order of your connections. That could solve the problem