apply proper port number to mongo host configuration