For example:
netstat -nap | grep mongo query port number of mongodb
Mongodb start port number is 27017