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()