What is the correct way to find a ServerSocket's IP address? I've tried:
1) getInetAddress() - returns 0.0.0.0/0.0.0.0
1) getLocalSocketAddress() - returns 0.0.0.0/0.0.0.0:4998
The socket is definitely bound, and working locally.
The IP address is associated with a network adapter, not a particular instance of ServerSocket. You can use ifconfig to find those addresses (ipconfig on non-Unix systems).