public static int convertPort(short port) {
        return port & 0xFFFF;
    }
Convert a short ip value to int.

@param port The port.
@return A int port value.
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareUtils.java