top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to connect with the mongoDB server running on remote windows machine?

+3 votes
1,161 views

while i am connecting from my windows machine to mongoDB server running on remote windows machine.
I am getting the following error.

MongoDB shell version: 3.0.4
connecting to: 192.168.0.103:27017/test
2015-06-20T15:16:52.584+0530 W NETWORK Failed to connect to 192.168.0.103:27017
after 5000 milliseconds, giving up.
2015-06-20T15:16:52.589+0530 E QUERY Error: couldn't connect to server 192.16
8.0.103:27017 (192.168.0.103), connection attempt failed
at connect (src/mongo/shell/mongo.js:181:14)
at (connect):1:6 at src/mongo/shell/mongo.js:181
exception: connect failed

posted Jun 20, 2015 by Prakash Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Are you trying to access a MongoDB instance running in your local area network, or is it in another network? The IP you gave is a private IP, and if it's in another network you'll need the public IP. If it's in your LAN and you're still not able to connect, check out this link on allowing remote access for MongoDB. MongoDB doesn't allow remote access by default. It could also be firewall issues

answer Sep 26, 2016 by Manikandan J
Similar Questions
+1 vote

How to connect MongoDB data which is stored in remote server(I have remote server details) locally?And Is there in Mongo UI to connect or only commands will help?If so please give some links to run commands.

0 votes

I have installed teradata express VMware (Linux). Able to connect to database using bteq and sql assistant located inside VM. But i need to install the Informatica in my host Windows and access the teradata database in Linux VM.

Is that possible? Please help me on how to do that?

+1 vote

I have a requirement where I need to kill one process on remote windows machine. Following command just works fine if i have to kill process on local machine

os.system('taskkill /f /im processName.exe')

However I am not able to figure out how to execute this command on remote windows machine. So is there any way I can execute command from windows machine on remote windows machine ?
Note: my local machine is also windows (machine from where i have to execute command)

...