Re: [Twisted-Python] ftp passive mode returning internal IP

2012-11-21 Thread Adi Roiban
On 21 November 2012 00:02, Paul Wiseman wrote: > On 20 November 2012 21:31, Adi Roiban wrote: >> >> Hi, >> >> I don't think there is support for configuring the advertised IP address. >> I don't know how EC2 ip forwarding works and how can you retrieve it. >> >> To use another IP address, in FTP.

Re: [Twisted-Python] ftp passive mode returning internal IP

2012-11-20 Thread Paul Wiseman
On 20 November 2012 21:31, Adi Roiban wrote: > Hi, > > I don't think there is support for configuring the advertised IP address. > I don't know how EC2 ip forwarding works and how can you retrieve it. > > To use another IP address, in FTP.ftp_PASV(), look for the following lines: > > self

Re: [Twisted-Python] ftp passive mode returning internal IP

2012-11-20 Thread Adi Roiban
Hi, I don't think there is support for configuring the advertised IP address. I don't know how EC2 ip forwarding works and how can you retrieve it. To use another IP address, in FTP.ftp_PASV(), look for the following lines: self.dtpPort = self.getDTPPort(self.dtpFactory) host =

[Twisted-Python] ftp passive mode returning internal IP

2012-11-20 Thread Paul Wiseman
This possibly has nothing to do with twisted, but maybe if not someone may be able to point me in the right direction! Basically I've set up a twisted FTP server on ec2, and when a client tries to enter passive mode I'm getting this: Response: 227 Entering Passive Mode (x,x,x,x,159,122). Status: