how to get any available port

Fredrik Lundh fredrik at
Tue Oct 4 20:42:18 CEST 2005

Mohammed Smadi wrote:

> if am using s.bind for a tcp socket.  On the client side i dont really
> care which socket i use as long as i get an available socket.  Is there a
> funciton or a way to get an available socket?

why are you using bind if you're on the client side?


More information about the Python-list mailing list