I have a java app that creates a socket to talk to a server process, eg new java.net.Socket(String host, int port). This app includes a bunch of legacy c++ code that needs t
Your second question-
You can always 'bind' to the local interface you want (just need the the Ip address for it)
public void bind(SocketAddress addr) throws SocketExceptionBinds this DatagramSocket to a specific address & port