try {
address = SocketAddressEncoder.decode(request.getArgument());
// port must not be 0
if(address.getPort() == 0) {
throw new IllegalPortException("PORT port must not be 0");
}
} catch (IllegalInetAddressException e) {
session.write(LocalizedFtpReply.translate(session, request, context,
FtpReply.REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS, "PORT", null));
return;