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