I don't know if these are all the ports you need, but there are some listed here that need to be open at the very least for Studio Pro 9:
https://docs.mendix.com/howto/collaboration-requirements-management/troubleshoot-network-issues-for-team-server
I would expect them to be the same for Mendix 8, but if you want to be sure, I'd double-check with support.