@Mark The restriction with hosting the bot in your environment or server is that it should be accessible publicly with a HTTPS endpoint. Here are more details in the FAQ document.
There is also no restriction on the port, you can change the port in the settings file and deploy the bot. The default port is 3978.