So here's the scenario: I need to tell a DatagramConnector what local port to use when sending datagrams to a remote address/port, but I also need to preserve the local address in the process. I use the specific local address (which is chosen internally by Java from the routing table, I guess, and can vary in a machine with multiple NICs) in my protocol implementation.
It seems like I should be able to set the local port without changing the local address. Is there a way to accomplish this? I couldn't even find a way using the standard Java APIs, but maybe I'm missing something. Thanks, Greg
