How to config mongo on a remote server?
For the port you need to start mongod with parameter --port 57777 . Alternative place it on the configuration file under 

net:
   port: 57777

For the username and password part you need to enable security by start  mongod with parameter--auth . Alternative place it on the configuration file under security.authorization = enable
Then you can create the username:root assign a password and certain privileges.

More can be found here: http://docs.mongodb.org/manual/core/authorization/