public Map < InetSocketAddress , ServerPort > activePorts ( ) { final Server server = this . server ; if ( server != null ) { return server . activePorts ( ) ; } else { return Collections . emptyMap ( ) ; } }
Returns the ports of the server .