When running the below code snippet, a MongoException is thrown.
final String host = "[2604:fe00:3:1103:250:56ff:fe98:c831]";
ServerAddress address = new ServerAddress(host, 27017);
MongoClient client = new MongoClient(host);
This is a valid IPV6 address.
Any help would be appreciated. I have tried many different ways of instantiating the client, they all fall back to the same process.
- Make ServerAddress using host string.
- Pass to MongoClient.
- Attempt MongoClient Construction using address.
- Exception thrown.
The exception is: