InternetAddress address

Returns the address that the server is listening on. This can be used to get the actual address used, when the address is fetched by a lookup from a hostname.

Source

InternetAddress get address;