Multi-homed socket server?

Carsten Gaebler cg at schlund.de
Wed Oct 25 17:18:29 EDT 2000


Joshua Muskovitz wrote:
> 
> This is just a guess, so take it for what it is.
> 
> When you bind with INADDR_ANY, you are saying that you don't care which
> address it binds to.  But I don't think this means "accept connections from
> any network adapter".  I think it means "select an adapter somehow, bind to
> it, and accept connections on it".

The ip man page says: "When INADDR_ANY is specified in the bind call the
socket will be bound to all  local  interfaces." So it should work.

cg.



More information about the Python-list mailing list