How to remotely connect to my MongoDB in my server with java?
问题 I want to use my MongoDB on my server from a java application on my laptop. this is my ufw setting aran@Aran:~$ sudo ufw status Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere 22 ALLOW Anywhere 80 ALLOW Anywhere 443 ALLOW Anywhere 21/tcp ALLOW Anywhere 27017 ALLOW 1.234.56.78 27017 ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6) 22 (v6) ALLOW Anywhere (v6) 80 (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6) 21/tcp (v6) ALLOW Anywhere (v6) 27017 (v6) ALLOW Anywhere (v6