lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

> On Linux server that have serveral IPs plumbed and where i use the option to bind prosody to one of the servers IPs and ports, the server will LISTEN on the choosen IP, but resulting sockets for client-connections may bind to *any* of the servers IPs!

> Digging in the internet, i found information about some kind of flag named "IPBIND" to be used for sockets, so that resulting connections will bind to the choosen IP too.

Let me see if I understood this correctly. You want the connected
socked returned by accept to be bound to a local address/port that you
specify yourself? It sounds very silly that the the accepted socket
would be bound to a different IP from the IP you were listening on. Is
this common behavior? Can you send me the link to this "flag" you are
talking about?

Regards,
Diego