From: Paul Sladen (vserver_at_paul.sladen.org)
Date: Sun 03 Nov 2002 - 21:05:26 GMT
On Sun, 3 Nov 2002, Burak wrote:
> > I believe the answer was to: RTFM
> Paul you do not understand my problem, it is easy for deamon to bind() any
> ip address if the ip is specific to the vserver, but it is impossible to use
> connect() somewhere except the main ip address of the vserver.
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