title: Python ftplib with misconfigured passive connection
body: <p>I'm connecting to an external FTP/FTPS server using python3 ftplib.FTP_TLS class. When the connection is established in passive mode, the server responds with an internal network IP address like 10.10.XX.XX.</p>
  
  <p>Since I am outside of the network I can't access the server on the provided IP address and ftplib hangs up. Setting the FTPS connection as active doesn't work.</p>
  
  <p>What is the best way to force ftplib to use the original hostname or the external IP address?</p>