Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

MongoServerSelectionError: connect ECONNREFUSED ::1:27017

// instead of this
const url = "mongodb://localhost:27017";

// Just Replace
const url = "mongodb://0.0.0.0:27017";
 
PREVIOUS NEXT
Tagged: #connect #ECONNREFUSED
ADD COMMENT
Topic
Name
6+6 =