<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=031292705-19022007><FONT face=Arial
color=#0000ff size=2>Will it be possible to disconnect one of the links during
your test and reconnect it and disconnect the other connection once the ftp test
is finished on the first connection? This way it will force the test script to
use the active route to the internet.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=031292705-19022007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=031292705-19022007><FONT face=Arial
color=#0000ff size=2>Not the most elegant way, but something to look at in the
mean time.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=031292705-19022007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=031292705-19022007><FONT face=Arial
color=#0000ff size=2>Johan</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> tutor-bounces@python.org
[mailto:tutor-bounces@python.org] <B>On Behalf Of </B>ray sa<BR><B>Sent:</B> 18
February 2007 04:16 AM<BR><B>To:</B> Alan Gauld;
tutor@python.org<BR><B>Subject:</B> Re: [Tutor] control multiple FTP sessions
using multiple ipconnectionsvia different com ports<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi Alan et al</DIV>
<DIV> </DIV>
<DIV>Many thanks for your time on this.</DIV>
<DIV> </DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>I was referring to the
client end. </FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>An EDGE terminal is a
phone that has the capability of connecting to the internet. We use mobile
phones to make a voice call that make use of a circuit switched
connection. By using a GPRS connection we can use the mobile device to connect
to the packet switched domain. You might have heard about making data connection
using your phone like GPRS, 3G etc. EDGE is just faster than a GPRS connection
and 3G is supposedly faster than GPRS and EDGE. </FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>May be I can give you
more information about what I am trying to do. So you can understand what I am
trying to achieve. Basically, I am trying to decide whether I should change my
ADSL fixed solution to a higher speed connection using a mobile solution. Where
I live the mobile operator is offering a mobile solution which is cheaper than
my fixed solution….and is faster than my ADSL connection, please read
on</FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>I have my ADSL
broadband connection to my service provider that I use to connect to the
internet. I have just bought a GPRS/EDGE/3G terminal and wanted to benchmark the
speed I am getting by using my mobile device as opposed to my fixed
connection.</FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>My desktop machine is
connected to my ADSL provider using a USB modem which is assigned a particular
COM port on my machine. Then I have connected my mobile handset also using a USB
connection connected to a different COM port.</FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>Now I have two ip
addresses</FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<OL style="MARGIN-TOP: 0pt" type=1>
<LI class=MsoNormal
style="MARGIN: 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"><FONT
face=arial>ADSL – COM port 4 with ip addres from my ADSL service
provider</FONT>
<LI class=MsoNormal
style="MARGIN: 0pt; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt"><FONT
face=arial>Mobile Handset – COM port 5 with another ip address from my mobile
provider</FONT></LI></OL>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>I have written a
script that connects to a ftp server within my home country and downloads a
file. But this script uses one of the connections above. There must be away to
tell the script and control which connection to use. So I can get to see real
time which connection is faster. So I can run the script pointing to one IP
address and at the same time run another script using the other
connection. </FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>I think there must be
a method that finds out which connection is connected to which com port and then
in my script I need to point towards that connection so my script knows which
channel to use when downloading the file.</FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><o:p><FONT
face=arial> </FONT></o:p></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"><FONT face=arial>I hope this helps
sorry for too much text couldn’t really find a simpler way to explain this.
</FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0pt"> </DIV>
<DIV class=MsoNormal style="MARGIN: 0pt">Once again I really appreciate the help
on this forum...../Ray</DIV>
<DIV><BR><BR><B><I>Alan Gauld <alan.gauld@btinternet.com></I></B>
wrote:</DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>"ray
sa" <BIZAG007@YAHOO.COM>wrote <BR><BR>> I have been successful to write an
ftp script that logs <BR>> into a server and collects files. <BR><BR>>
...I would like to run multiple ftp sessions using one laptop <BR>> with
two different connections. <BR><BR>Do you mean you want the server on the
laptop accepting <BR>using two connections or do you mean that you want<BR>the
client on the laptop and have different sessions sending <BR>outgoing requests
to the server via two different IP addresses?<BR><BR>If the former its easy,
just set up two servers, one on each <BR>IP address. The port will nbe the
same on both, ISTR its port <BR>21 for ftp?<BR><BR>If you want to specify
which IP address you send the <BR>client request from, I'm afraid I have no
idea how you specify <BR>that. I've only ever used multiple network cards at
the server <BR>end!<BR><BR>> another connection using your EDGE terminal
<BR><BR>As a matter of interest what is an EDGE terminal? <BR>A new term for
me...<BR><BR>> I would like to write a script that controls which ip
<BR>> address to use or with com port to use. <BR><BR>Until we know which
end you mean its hard to hgive more <BR>specific advice.<BR><BR>Alan
G.<BR><BR>_______________________________________________<BR>Tutor maillist -
Tutor@python.org<BR>http://mail.python.org/mailman/listinfo/tutor<BR></BLOCKQUOTE><BR>
<P>
<HR SIZE=1>
No need to miss a message. <A
href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail">Get email
on-the-go </A><BR>with Yahoo! Mail for Mobile. <A
href="http://us.rd.yahoo.com/evt=43910/*http://mobile.yahoo.com/mail">Get
started.</A><BR>
<P><FONT size=2>--<BR>No virus found in this incoming message.<BR>Checked by AVG
Free Edition.<BR>Version: 7.5.441 / Virus Database: 268.17.39/685 - Release
Date: 2007/02/13 10:01 PM<BR></FONT></P>
<P><FONT face=Arial size=2></FONT></P></BODY></HTML>
<BR>
<P><FONT SIZE=2>--<BR>
No virus found in this outgoing message.<BR>
Checked by AVG Free Edition.<BR>
Version: 7.5.441 / Virus Database: 268.18.2/692 - Release Date: 2007/02/18 04:35 PM<BR>
</FONT> </P>