[CSHARP-1028] Unable to connect to server 10.30.41.50:27017: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond Created: 11/Aug/14 Updated: 04/Apr/15 Resolved: 04/Apr/15 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Configuration, Connectivity, Error Handling, Setup |
| Affects Version/s: | 1.8.3, 1.9 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | Michael | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | connection | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Localhost windows 7 |
||
| Description |
|
Hi // var client = new MongoClient("mongodb://10.30.41.50/DocumentManagerDataBase"); var client = new MongoClient("mongodb://10.30.41.50/DocumentManagerDataBase/?socketTimeoutMS=30000"); var server = client.GetServer(); catch (Exception e) { throw; }Stacktrace information: Unable to connect to server 10.30.41.50:27017: at MongoDB.Driver.Internal.DirectMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) If I change to my localhost it working fine, but for the other hots does not work. I dont have anny firewwal in the midlle, etc. My mongoDb database it hoted on Windows server 2012. |