[CSHARP-2828] only connect to mongodb by vpn Created: 31/Oct/19  Updated: 02/Jul/20  Resolved: 02/Jul/20

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

Type: Bug Priority: Major - P3
Reporter: liam Pay Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hi

On one of my servers I installed mongodb 4.2 and by default TLS is disable and I give access to all ip address to connect to my mongodb database but every time I try to connect to this server based on port 27017 by robo I face this error:

Error:
Network is unreachable. Reason: network error while attempting to run command 'isMaster' on host

And whenever I try to connect by asp.net core i see this error

TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = MongoDB.Driver.MongoClient+AreSessionsSupportedServerSelector, LatencyLimitingServerSelector{ AllowedLatencyRange = 00:00:00.0150000 } }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "Unknown", State : "Disconnected", Servers : [{ ServerId: "{ ClusterId : 1, EndPoint :

But when I use VPN ,connection to my server is successful even without VPN I see connection listener in log file but without client metadata . I do not know what is the problem even I give access to all ip address.

please help me to solve the problem.



 Comments   
Comment by Esha Bhargava [ 02/Jul/20 ]

d.liam1984@yandex.com Apologies for the delay in responding to this request. This sounds like a support issue, so I wanted to give you some resources to get this questioned answered more quickly:

  • our MongoDB support portal, located at support.mongodb.com
  • our MongoDB community portal, located here
    -If you are an Atlas customer, there is free support offered 24/7 in the lower right hand corner of the UI.
    Just in case you have already opened a support case and are not receiving sufficient help, please let me know and I can facilitate escalating your issue.
    Thank you!
Generated at Wed Feb 07 21:43:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.