code: public static String getLocalIPFromServerSocketAsString()
  		throws UnknownHostException, IOException
  	{
  		InetAddress inetAddress = null;
  		inetAddress = IPResolver.getLocalIPFromServerSocket(10000, 20000);
  		return IPResolver.getIP(inetAddress);
  	}
docs: Gets the ip address from the local host as String. It use a ServerSocket object to get it.
  
  @return Returns the ip from the local host from a ServerSocket object as String.
  @throws IOException
  Signals that an I/O exception has occurred.
  @throws UnknownHostException
  is thrown if the local host name could not be resolved into an address.