How to Fix the “Illegal PORT Command” FTP Error If you are behind a router (NAT) or firewall while using FTP, you must enable passive mode in your FTP client.