for( port = 1; port <= 65535; port ++ )
{
socketBound = false;
datagramBound = false;
Service socketService = new Service( "echo", TransportType.SOCKET, port );
Service datagramService = new Service( "echo", TransportType.DATAGRAM, port );
try
{
registry.bind( socketService, new EchoProtocolHandler() );
socketBound = true;