How set the source IP adress

Maksim Kasimov maksim.kasimov at gmail.com
Fri Oct 27 14:22:50 CEST 2006


Hi,

how to set source ip-address when do __socket.connect((host, port))
on a machine that have a several ip-adresses?

many thanks for advice.

__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
__socket.connect((host, port))


-- 
Maksim Kasimov



More information about the Python-list mailing list