code: public InetAddress getInetAddress ()
      {
          Connection conn = getConnection();
          return (conn == null) ? null : conn.getInetAddress();
      }
docs: Returns the address of the connected client or null if this client is not connected.