It looks like you are trying to access MongoDB over HTTP on the native driver port. ERROR

14,827 views
Skip to first unread message

Horacy Pigula

unread,
Apr 17, 2016, 6:07:37 AM4/17/16
to mongodb-user
Hello when I try to go to http://127.0.0.1:27017/ or via HTTPS I'm getting "It looks like you are trying to access MongoDB over HTTP on the native driver port." or "Couldn't Connect to Server on W8.1 Pro X64.MDB 3.2.5. What's going on with it???

Can someone help???

Regards,
Horacy.

AlainC

unread,
Apr 18, 2016, 4:36:46 AM4/18/16
to mongodb-user
Default port 27017 is not intended for http requests. As stated in the error message, it is used for drivers or utilities such as mongo, mongostat...
For HTTP or REST request the 28017 port (default port + 1000)  is used by default (if nohttpinterface = true is not present in your configuration file).

harsh sarode

unread,
Apr 10, 2018, 8:54:07 PM4/10/18
to mongodb-user
hi, thanks,
i tried with nohttpinterface = true and httpinterface = true into /etc/mongod.conf doesnot workout!!! 

Stephen Steneker

unread,
Apr 11, 2018, 6:28:30 AM4/11/18
to mongodb-user
On Wednesday, 11 April 2018 10:54:07 UTC+10, harsh sarode wrote:
i tried with nohttpinterface = true and httpinterface = true into /etc/mongod.conf doesnot workout!!! 

Hi Harsh,

The original thread you replied to is about trying to (incorrectly) connect to the default MongoDB port (27017) using http. The MongoDB server uses a binary wire protocol and you must connect using a compatible driver or application such as the mongo shell or MongoDB Compass.

The HTTP status interface options are you are trying to set were deprecated as of MongoDB 3.2 and removed in the MongoDB 3.6 release. The legacy HTTP status interface has limited utility (and security) and should be left disabled, as per the default setting.

If you still have questions about your deployment can you please start a new discussion thread and include:
  • Specific version of MongoDB server are you using (x.y.z)
  • Your O/S version
  • Description of the outcome you trying to achieve
  • What you've tried so far and any specific error messages or warnings
Thanks,
Stennie
Reply all
Reply to author
Forward
0 new messages