This article lists the ports that are used by the UniFi VoIp Controller Software.
VoIP Ctrl HTTP (Inform port): 9080
VoIP Ctrl HTTPS (UI): 9443
VoIP Ctrl Database Port: 29117**
** The port 29117 by default is listening to only 127.0.0.1 and does not need to be exposed to the outside world when setting up the UniFi VoIp Controller.
The SIP Audio / Media Ports are not listed above as these are dependent on your PBX configuration.