Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-44351

Only connect to mongodb by vpn

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Incomplete
    • Icon: Major - P3 Major - P3
    • None
    • 4.2.1
    • None
    • None

    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.

      Attachments

        Activity

          People

            carl.champain@mongodb.com Carl Champain (Inactive)
            d.liam1984@yandex.com liam Pay
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: