On a server with multiple IP addresses, the getInetAddress() method tells you which one this server socket is listening to.
On a server with multiple IP addresses, the getInetAddress() method tells you which one this server socket is listening to.
public InetAddress getInetAddress()
The getLocalPort() method tells you which port you're listening to.
public int getLocalPort()
Previous slide
Next slide
Back to first slide
View graphic version