> Paul; > Even when making outgoing connections, bind() is still used to select the > source address before the connect(). Not calling bind() signals the > kernel to select an appropriate default source address. Eg. > > socket() /* create the socket */ > ... > bind() /* set source address/port */ > ... > connect() /* set destination address/port */ > > If you have a source snippet, or minimal-example that demonstrates the > problem that you are having please do post it, as that will aid further > investigation. > > HTH, > -Paul > -- > Nottingham, GB
IPROOT="213.194.103.98 213.194.103.99 213.194.103.100" These are the ip address for my vserver. Please look at the attachment for my simple connect code. "gcc -o burak connect.c" If i try to bind 213.194.103.100 and connect somewhere with that ip address i got; ./burak 213.194.112.66 connect: Operation not permitted Then i change the bind ip address as 213.194.103.98 ( main ip for my vserver) and again try to use my code; ./burak 213.194.112.66 connecttion with 213.194.103.98 ip address is done. It is completly my problem, and i need to fix that(need to use all the ip address on my vserver could used for connect). Thanks, Best Regards, Burak.
connect.c
Description: Binary data
