nc 27017 failed

Discussion in 'Networking' started by Arifin, May 2, 2018.

  1. Arifin

    Arifin New Member

    Joined:
    May 2, 2018
    Messages:
    1
    Likes Received:
    0
    Hello,

    I use Macbook Pro (using High Sierra OS). I have a problem connecting to port 27017 using nc command and other tools to connect MongoDB port. But another port (like 3306 and 21) it's okay from my laptop.

    How to fix this issue? Beside re-install the OS?

    nb: from another laptop connect to that port no problem.

    Thank you,
    Arifin

    Here is sample from my macbook pro:

    ITKD000076-MAC:~ muhammad$ nc 172.30.50.160 27017

    ^C

    ITKD000076-MAC:~ muhammad$ nc 172.30.50.160 22

    SSH-2.0-OpenSSH_7.4


    THis is from server:
    [centos@dss ~]$ netstat -anp | grep 27017

    (No info could be read for "-p": geteuid()=1000 but you should be root.)

    tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN -

    tcp 0 0 127.0.0.1:27017 127.0.0.1:35152 ESTABLISHED -

    tcp 0 0 172.30.50.160:27017 172.30.11.62:57552 ESTABLISHED -
     
    Arifin, May 2, 2018
    #1
    1. Advertisements

  2. Arifin

    Cory Cooper Moderator

    Joined:
    May 19, 2004
    Messages:
    6,044
    Likes Received:
    199
    Hello and welcome.

    A few questions:

    -Which version of OS X?
    -I assume you are trying to connect to a remote server via SSH?

    C
     
    Cory Cooper, May 5, 2018
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.