[CSHARP-346] Support numeric IPv6 addresses in connection strings Created: 25/Oct/11  Updated: 02/Apr/15  Resolved: 09/Nov/11

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.3
Fix Version/s: 1.3.1

Type: New Feature Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

For example:

var connectionString = "mongodb://[::1:]/?safe=true"; // localhost
var server = MongoServer.Create(connectionString);



 Comments   
Comment by Robert Stam [ 09/Nov/11 ]

Tested on a real Windows machine with IPv6 support. Note that the connection string needs to be a little bit different:

var connectionString = "mongodb://[::1]/?ipv6=true;safe=true"; // localhost
var server = MongoServer.Create(connectionString);

The C# driver won't use IPv6 unless you tell it that it's OK to do so (by adding ipv6=true to the connection string). Also, there was a slight typo in the numeric value for localhost (an extra ":" at the end).

Comment by Robert Stam [ 03/Nov/11 ]

Implemented, but was unable to test fully because I'm on the road and my VirtualBox VM doesn't seem to support IPv6. Will do final testing when I get back to a real Windows machine.

Generated at Wed Feb 07 21:36:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.