code: public String getLocalHost()
    {
      InetAddress localAddress = addressLocal();
      
      if (localAddress != null)
        return localAddress.getHostAddress();
      else
        return null;
    }
docs: Returns the server inet address that accepted the request.