This possibly has nothing to do with twisted, but maybe if not someone may be able to point me in the right direction!<div><br></div><div>Basically I&#39;ve set up a twisted FTP server on ec2, and when a client tries to enter passive mode I&#39;m getting this:</div>
<div><br></div><div>Response:<span class="Apple-tab-span">        </span>227 Entering Passive Mode (x,x,x,x,159,122).</div><div>Status:<span class="Apple-tab-span">        </span>Server sent passive reply with unroutable address. Using server address instead.</div>
<div><br></div><div>the x.x.x.x is the boxes private IP, rather than its public IP.</div><div><br></div><div>It&#39;s getting this from ln. 851 in twisted/protocols/ftp.py v12.2.0</div><div><br></div><div>Is there somehow I can change the way twisted is getting the IP, or is this an issue with the server set up itself?</div>
<div><br></div><div>Any pointers or help on what to look/check for would be of huge help!</div><div><br></div><div>Thanks!</div><div><br></div><div>Paul</div>