No process is listening on that port. That’s why.

So you will need to check if mongodb server is indeed listening on that port as said in above comment. (likely, no), and if not, fix it

2 Likes