Well, I'm not a great expert on this, but in the FTPlib, it makes use of sockets. Maybe Alan can comment if socket.getaddrinfo(host, port) can be manipulated to change the outgoing interface. Good topic. Johan
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ray sa Sent: 16 February 2007 05:42 PM To: tutor@python.org Subject: [Tutor] control multiple FTP sessions using multiple ip connectionsvia different com ports Hi Kind people I have been successful to write an ftp script that logs into a server and collects files. What I would like to do but have no knowledge of is that I would like to run multiple ftp sessions using one laptop with two different connections. What I mean here is that you have a ethernet card connection to the ip world and then you have another connection using your EDGE terminal so in other words you have two ip address and I would like to write a script that controls which ip address to use or with com port to use. I was hoping someone could help to define how to force the ftp script to use the relevant connections on one laptop. You help and guidance will be most appreciated. Many thanks Ray _____ HYPERLINK "http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/fea tures/mail/"Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives.HYPERLINK "http://us.rd.yahoo.com/evt=49937/*http://tools.search.yahoo.com/toolbar/fea tures/mail/" Check it out. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/685 - Release Date: 2007/02/13 10:01 PM -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.39/685 - Release Date: 2007/02/13 10:01 PM
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor