I think this may actually be related to a Java bug.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5076965

-Greg

On 3/8/06, Greg Duffy <[EMAIL PROTECTED]> wrote:
> 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
>

Reply via email to