public int getRemotePort() {
        if (remoteAddress instanceof InetSocketAddress)
            return ((InetSocketAddress) remoteAddress).getPort();
        else
            throw new RuntimeException("Unknown SocketAddress class: " + remoteAddress.getClass().getName());
    }
Returns the remote address, or null if unresolved
container-core/src/main/java/com/yahoo/jdisc/http/HttpRequest.java