public int getPort()
    {
        if ( tcpPortPropertyName != null )
        {
            return JiveGlobals.getIntProperty( tcpPortPropertyName, defaultPort );
        }
        else
        {
            return defaultPort;
        }
    }
The TCP port number on which connections will be accepted when this listener is enabled.

@return A port number.
xmppserver/src/main/java/org/jivesoftware/openfire/spi/ConnectionListener.java