code: public String getRemoteHost()
      {
          if (_remoteHost==null)
          {
              if (_resolveRemoteHost)
              {
                  if (_remoteInetAddress==null)
                      return "localhost";
                  _remoteHost=_remoteInetAddress.getHostName();
              }
              else
              {
                  if (_remoteInetAddress==null)
                      return "127.0.0.1";
                  _remoteHost=getRemoteAddr();
              }
          }
          return _remoteHost;
      }
docs: Get the Remote address.
  @return the remote host name