mongo --proxy option?

4,819 views
Skip to first unread message

[psyg]

unread,
May 23, 2012, 1:34:01 PM5/23/12
to mongodb-user
Curios if there is a httpproxy option for using mongo when connecting
to a remote mongod instance. I work behind a proxy but cant seem to
get outside my network. Just times out... am i missing something?
Thanks!

A. Jesse Jiryu Davis

unread,
May 23, 2012, 2:56:31 PM5/23/12
to mongod...@googlegroups.com
Mongo doesn't use HTTP, it uses its own network protocol over port 27017, by default. Can you try pinging the machine running mongod? and can you verify that no firewall is preventing you from connecting over port 27017 to the machine?

Abhishek kumar

unread,
May 20, 2015, 5:09:25 PM5/20/15
to mongod...@googlegroups.com
Hello There,

I am also facing the same problem. I am behind a corporate proxy network and had mongo instance running on different server.
I am able to access mongo instance through "http rest interface", but connecting to server on robomongo fails. Also not able to connect to mongo server using mongoclient(java driver).

Not able to understand the behaviour, connecting through the http interface but not with native driver.


Thanks in advance.

Regards
Abhishek

Stephen Steneker

unread,
May 21, 2015, 1:09:06 AM5/21/15
to mongod...@googlegroups.com, abhishek...@gmail.com
Hi Abhishek,

In future please start a new discussion rather than replying to posts from several years ago :).

If you don't have direct access to connect to your MongoDB server, you'll need to set up an SSH tunnel or VPN for remote access. The instructions for this will be specific to your operating system, but you should be able to find relevant tutorials online.

There's also some information on security & best practices in the MongoDB manual which should be a helpful read:

Regards,
Stephen
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages