502: error in port number ‘value

Explanation

The server received one of these commands containing a port number: EPRT or PORT.

value is the value of the port number parameter. The port number parameter is not valid.

The PORT command was issued by the client. The PORT command should have the syntax PORT h1,h2,h3,h4,p1,p2 where h1—h4 are integers that make up the host address and p1 and p2 are integers that make up the port address. When parsing the PORT command, the FTP server found a nonnumeric character in one of the 2 integers that make up the port address.

The EPRT command should have the syntax EPRT <d><net-prt><d><net-addr><d><tcp-port> where:
<d>
is a delimiter character.
<net-prt>
is the network protocol.
<net-addr>
is the network address.
<tcp-port>
is the port number.

When parsing the EPRT command, the FTP server could not parse the tcp-port parameter.

System action

The command is rejected. Control is returned to the client for further command processing.

User response

If the command was issued by the user, reissue the command with the correct syntax. If the command was issued automatically by the FTP client program, contact the owner of the FTP client program for a possible programming error in the client program.

System programmer response

None.