Knowledge Base
Created
Modified
Modified
PORT command failed
Problem
PORT command failed.
HRESULT: FTPLIB_E_PORTCOMMANDFAILED (0x8004310f)
FTP server replies:
500 Illegal PORT Command
500 Illegal PORT range rejected
501 Server cannot accept argument.
Cause
The FTP server does not accept the IP address in the PORT command.
Solution
For client to server / server to client transfers
Enable Passive Mode.
- Go to the menu: Favorites - Favorite Properties
- Go to the FTP - Connection dialog
- In the Data Connection group, set the Mode to Passive Mode (PASV)
- Click OK to save the changes
- Restart SmartFTP
For server to server (FXP) transfers
The server must be configured to allow foreign IPs in PORT.
Keywords
500 illegal port command illegal port range passive mode
Related Articles
How To switch between Active / Passive mode
What do you think about this topic? Send feedback!