nc 27017 failed

Joined
May 2, 2018
Messages
1
Reaction score
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 -
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,106
Reaction score
497
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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top