@Override
    public void sendFromPortB(String host, int port) {
        try {
            InetAddress address = InetAddress.getByName(host);
            channelBtoA.setHost(address);
            channelBtoA.setPort(port);
            channelBtoAControl.setHost(address);
            channelBtoAControl.setPort(port + 1);
        }
        catch (Exception e) {
            Log.error(e.getMessage(), e);
        }
    }
Get the localport that listen for Host B Packets

@return the local port for B
xmppserver/src/main/java/org/jivesoftware/openfire/mediaproxy/MediaProxySession.java