Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2828

only connect to mongodb by vpn

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Configuration
    • None

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            d.liam1984@yandex.com liam Pay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: