FTP Passive Mode on Different Port
Posted on 2005-03-09
Hey everyone! I'm having a little problem and was wondering if anyone can help.
Here's what I have set up, i have an FTP on port 21 that works excellent. Its Passive, so after connecting, it connects to a port in the 24XXX range. I wanted a seperate FTP to run off of port 1773. When I connect to that port, it logs in and everything, but then creates a PASV command using a LOCAL ip.
It connects and authenticates to 267.282.274.43:1773 then says this:
227 Entering Passive Mode (192,161,0,9,13,206).
STATUS:> Connecting FTP data socket 220.127.116.11:3534...
How can i get it to create a passive connection using the EXTERNAL ip? Again, the FTP on port 21 creates a passive connection (using PASV command) using the EXTERNAL ip. Why does it change when i try to change the port?