Hi,
License checking uses port 443, the default port for SSL. Other ports like 1935 for RTMP, 5544 for RTSP, and others are defined in config.lua (which you can reassign, if required). All these ports need to be opened on your firewall for EMS to work properly.
Cheers,
Don