About this list Date view Thread view Subject view Author view Attachment view

From: Burak (burak_at_duslersokagi.com)
Date: Mon 04 Nov 2002 - 19:41:51 GMT


> 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.



About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:43 GMT by hypermail 2.1.3