From: Burak (burak_at_duslersokagi.com)
Date: Mon 04 Nov 2002 - 19:41:51 GMT
> 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
> Nottingham, GB
IPROOT="18.104.22.168 22.214.171.124 126.96.36.199"
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 188.8.131.52 and connect somewhere with that ip address
connect: Operation not permitted
Then i change the bind ip address as 184.108.40.206 ( main ip for my
vserver) and again try to use my code;
connecttion with 220.127.116.11 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,