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 -
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 -