3

Trying to access remote MongoDB. Got the following error:

C:\Users\ranjj_000>mongo <SERVER_IP_HERE>:28017
MongoDB shell version: 2.6.0
connecting to: 111.93.128.60:28017/test
2014年04月22日T12:19:45.084+0530 Socket recv() errno:10054 An existing connection was forcibly closed by the remote host. 111.93.128.60:28017
2014年04月22日T12:19:45.087+0530 SocketException: remote: <SERVER_IP_HERE>:28017 error: 9001 socket exception [RECV_ERROR] server [<SERVER_IP_HERE>:28017]
2014年04月22日T12:19:45.088+0530 DBClientCursor::init call() failed
2014年04月22日T12:19:45.093+0530 Error: DBClientBase::findN: transport error: 111.93.128.60:28017 ns: admin.$cmd query: { whatsmyuri: 1 } at src/mongo/shell/mongo.js:148

exception: connect failed

Server is: CentOS release 6.4 (Final)

Paul White
95.4k30 gold badges440 silver badges689 bronze badges
asked Apr 22, 2014 at 7:15
0

1 Answer 1

3

Port 28017 is usually the HTTP Console interface, not the port you should be using to connect via the shell. Change the port to 27017 instead and retry.

answered Apr 22, 2014 at 17:06

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.