code: public InetAddress getInetAddress(){
        if(remoteIP == null){
  	 try{
  	   remoteIP = InetAddress.getByName(remoteHost);
  	 }catch(UnknownHostException e){
  	   return null;
  	 }
        }
        return remoteIP;
     }
docs: Get remote host as InetAddress object, might return null if
  addresses are resolved by proxy, and it is not possible to resolve
  it locally
  @return Ip address of the host this socket is connected to, or null
  if address was returned by the proxy as DOMAINNAME and can't be
  resolved locally.