which outgoing network device/IP is used?

Robert k.robert at gmx.de
Wed Oct 9 18:23:08 EDT 2002


hello,

if a computer has more network devices I want to know which one (IP) is used
for a outgoing socket connection to a certain remote host. (in order to
'bind/accept' later on that IP for an incoming connection request)

found only that socket.gethostbyname_ex(socket.gethostname()) provides a
list of IPs

robert






More information about the Python-list mailing list