code: public InetSocketAddress getSocketAddress() {
          try {
              return new InetSocketAddress(InetAddress.getByName(host), port);
          } catch (UnknownHostException e) {
              throw new MongoSocketException(e.getMessage(), this, e);
          }
      }
docs: Gets the underlying socket address
  
  @return socket address