Skip to content
← Back to Community
MongoDB
Profile icon
dillonjoshua68

What do we put for the IP address in the .MongoClient() method... is it always

import pymongo myclient = pymongo.MongoClient(“mongodb://localhost:27017/“)

Or what else can we put instead of localhost:27017

Voters
Profile icon
unimexes2
Profile icon
NagagaGaga
Profile icon
is6268076
Profile icon
shadowwhite2010
Profile icon
DynamicSquid
Profile icon
dillonjoshua68
Comments
hotnewtop
Profile icon
PattanAhmed

@dillonjoshua68 Hi,
Read this amazing website:-
Click here
You can find MongoDB in Repl.it in the above website

Hope this helps
Please mark my answer if this helps

Profile icon
ironblockhd

I think replit doesnt support mongodb servers, try to use an external database as shown here.

or use repldb after you activate explorer role here
IMG_2810

Profile icon
dillonjoshua68

u sure? cuz the pymongo module is there? @ironblockhd

Profile icon
codingmasters

@dillonjoshua68 Very sure. pymongo works perfectly well on Visual Studio Code.