public void setMaxPort(int maxPort) {
        this.maxPort = maxPort;
    }
Sets the maximum port value to listen for incoming packets.

@param maxPort the maximun port value.
xmppserver/src/main/java/org/jivesoftware/openfire/mediaproxy/MediaProxy.java