What's rmat?

As far as changing the port, if you are talking about getting remote access through a web browser, you'll need port 443 because that is the port for https.