On 27/07/07, Shachar Shemesh <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is it possible to conduct initiated TCP communication while binding to a > certain IP address, but still use the anonymous port range?
In the sockaddr_in struct you pass to bind(2), specify the IP address you want and leave the port number as 0, from both looking at the kernel source and running a little experiment it seems to work. --Amos