I'm having some trouble with Python HTTP Server and MongoDB. In this case HTTP server represents a REST service providing data from MongoDB.MongoDB is running on default port (27017) at all times. When I run my HTTP server on port 7000 and terminate it afterwards with Ctrl+CMongoDB portnetstat -tulpen | grep :27017tcp   0  0 0.0.0.0:27017  0.0.0.0:*  LISTEN  498    8984    1276/mongodPython HTTP server portnetstat -tulpen | grep :7000tcp  0  0 0.0.0.0:7000  0.0.0.0:*  LISTEN   0    4697443    1522/pythonNow, when I press Ctrl+C terminating this HTTP server and do a quick netstatMongoDB port netstat -tulpen | grep :7000 tcp 0 0 0.0.0.0:7000     0.0.0.0:*  LISTEN  0 4697443    1550/mongodIf I try to connect to MongoDB using port 7000, it fails. However, MongoDB is up and running on port 27017.I'm not even sure where to look anymore, all this is confusing.
mongodb hijacking port
networking;python