void stop() {
            log("Start stopping accepting connections.");
            shouldStop = true;
            try {
                server.close();
                log("Closed server accepting connections.");
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
Get the port on which this instance is accepting sockets.

@return a port number.
xmppserver/src/test/java/org/jivesoftware/openfire/session/RemoteReceivingServerDummy.java