{
count++;
try
{
// use the next port in list (or 0 by default, indicating any port number)
FTPDataSocket socket = newActiveDataSocket(nextPort);
int port = socket.getLocalPort();
InetAddress addr = socket.getLocalAddress();
sendPORTCommand(addr, port);
return socket;
}
catch (SocketException ex)
{