Code example for Socket

Methods: getLocalPort

0
        return socket.getPort();
    } 
 
    @Override 
    public int getLocalPort() { 
        return socket.getLocalPort();
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java