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

Cannot connect from a remote machine without specifying default port

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.2.2
    • Shell
    • None
    • Oracle Linux 64-bit

    Description

      Hi,

      I have a Replica Set running on three Linux machines ssvm41, ssvm42, and ssvm43
      The connection without specifying the default port from a remote machine another one that listed above aka “Client” over network fails
      UNIX> mongo ssvm41
      MongoDB shell version: 2.2.2
      connecting to: ssvm41
      Fri Dec 7 12:47:50 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91
      exception: connect failed

      If I run the same on a member machine ssvm42 it works
      UNIX> mongo ssvm41
      MongoDB shell version: 2.2.2
      connecting to: ssvm41
      aba:SECONDARY>
      !!! Remember it says SECONDARY !!!

      Specifying the default port makes it working from “Client”
      UNIX> mongo ssvm41:27017
      MongoDB shell version: 2.2.2
      connecting to: ssvm41:27017/test
      aba:PRIMARY>
      it says now connected to PRIMARY now.

      Would you please explain this behavior.
      Thanks,
      Edouard

      Attachments

        Activity

          People

            Unassigned Unassigned
            eperov Edouard Perov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: