3 CX Port Requirements Essential Configuration Guide

Table of Contents
- Network Port Requirements for 3CX Installation
- Default TCP/UDP Ports for 3CX Core Services
- Verification of Open Ports in 3CX Environments
- Windows Systems
- Firewall and Security Configurations for 3CX Ports
- Firewall Rules for 3CX Traffic
- Blocking Malicious Ports and Unused Services
- Custom Security Groups for Cloud Environments (AWS/Azure)
- TLS vs. Non-TLS Port Configurations
- SIP Trunking and External Connectivity Ports for 3CX
- Essential SIP Trunking Ports and Provider Dependencies
- NAT Traversal Methods and Required Ports
- Troubleshooting SIP Trunking Failures
- Text-Based Flowchart: SIP Call Path from 3CX to Provider
- Client-Side Ports for 3CX Phone Systems
- Web Client Port Requirements
- Desktop Application Port Requirements
- Mobile Application Port Requirements
- Softphone Port Requirements
- Corporate Proxy Configuration for 3CX Traffic
Properly configuring network ports is a cornerstone of deploying a secure and efficient 3CX communication system. Without accurate port management, organizations risk disrupted SIP trunking, failed client connections, and security vulnerabilities. This guide provides a structured breakdown of mandatory and optional ports across 3CX’s core services, firewall best practices, and troubleshooting methodologies to ensure seamless operation in enterprise environments.
The integration of SIP trunking, client applications, and cloud security groups demands precise port allocation and firewall policies. From default TCP/UDP assignments for PBX and web clients to dynamic RTP ranges for VoIP calls, each port plays a critical role in maintaining call quality and system reliability. Additionally, misconfigurations in NAT traversal or SIP ALG settings can lead to connectivity failures, underscoring the need for systematic verification and hardening procedures.

Network Port Requirements for 3CX Installation
The 3CX Phone System relies on a structured set of TCP/UDP ports to facilitate communication between the PBX server, clients, and external services. Proper configuration of these ports ensures seamless operation, security, and interoperability with SIP trunks, VoIP providers, and internal/external endpoints. Misconfigured or blocked ports can result in call failures, connectivity issues, or security vulnerabilities. Below is a detailed breakdown of the default ports, their functions, and verification procedures, along with guidance for NAT environments.Default TCP/UDP Ports for 3CX Core Services
3CX utilizes a combination of well-known and custom ports for its core functionalities, including SIP signaling, media streaming (RTP), web-based management, and client connectivity. The table below categorizes these ports into mandatory (required for basic operation) and optional (enhancements or specific use cases), along with their protocols, default states, and security implications.Note: Ports may vary in custom installations or when integrated with third-party systems (e.g., reverse proxies, firewalls). Always verify configurations against the 3CX documentation for the specific version.
| Port Number | Protocol | Service/Function | Default State | Security Implications | Category |
|---|---|---|---|---|---|
| 5060 (TCP/UDP) | SIP | Primary SIP signaling for VoIP calls (inbound/outbound). Used by SIP trunks and internal extensions. | Open (both directions) | Exposing 5060/UDP publicly may pose security risks (e.g., SIP scanning, brute-force attacks). Restrict access via firewall rules or NAT traversal techniques. | Mandatory |
| 5061 (TCP/UDP) | SIP (TLS) | Encrypted SIP signaling for secure communication with SIP trunks or clients. Recommended for compliance (e.g., PCI DSS, HIPAA). | Open (optional, but recommended for TLS) | Mitigates eavesdropping and tampering. Ensure certificates are valid and up-to-date. | Mandatory (for TLS-enabled environments) |
| 443 (TCP) | HTTPS | Web management interface (3CX Management Console), web client, and API access. Redirects to port 9001 if configured. | Open (inbound) | Exposure to web vulnerabilities (e.g., XSS, CSRF). Use strong passwords, HTTPS enforcement, and regular updates. | Mandatory |
| 9001 (TCP) | HTTPS | Internal 3CX web service (used by the Management Console and web client). Often redirected from port 443. | Open (internal) | Internal traffic only; minimal external risk if properly firewalled. | Mandatory |
| 80 (TCP) | HTTP | Legacy web interface (deprecated in newer versions; replaced by HTTPS). | Closed (recommended) | Unencrypted traffic vulnerable to MITM attacks. Disable if not in use. | Optional |
| 5060-5090 (UDP) | RTP | Media streaming (voice/video) for calls. Dynamic ports may be used (e.g., 10000-20000). | Open (both directions, dynamic range) | RTP flooding or amplification attacks possible. Restrict to trusted IPs or use NAT traversal (STUN/TURN). | Mandatory |
| 3478 (UDP) | STUN | NAT traversal for SIP/RTP in peer-to-peer calls (e.g., WebRTC). | Open (outbound) | Minimal risk; used for internal discovery. | Optional (for WebRTC) |
| 3479 (TCP/UDP) | TURN/STUN | Relay service for NAT traversal (if STUN fails). Requires configuration in 3CX. | Open (if enabled) | Increases bandwidth usage; restrict to authorized clients. | Optional (advanced NAT scenarios) |
| 5222 (TCP) | XMPP | Legacy 3CX client communication (deprecated; replaced by WebSocket). | Closed (recommended) | Obsolete protocol; disable if unused. | Optional |
| 5223 (TCP) | XMPP (TLS) | Encrypted legacy client communication. | Closed (recommended) | Same as above; disable if unused. | Optional |
| 5280 (TCP) | WebSocket | Modern 3CX web client and real-time updates (replaces XMPP). | Open (inbound, if used externally) | WebSocket-based attacks possible; restrict access. | Mandatory (for web client) |
| 5281 (TCP) | WebSocket (TLS) | Encrypted WebSocket for secure client connections. | Open (recommended) | Preferred for security; ensures encrypted communication. | Mandatory (for TLS-enabled web client) |
Verification of Open Ports in 3CX Environments
Accurate port verification ensures that 3CX services can communicate without interruptions. Below are step-by-step procedures for Windows and Linux systems, using native tools and third-party utilities.Prerequisites:
Administrative/root access to the server. Basic familiarity with command-line tools. 3CX services running (PBX, web server, SIP/RTP modules).
Windows Systems
To check listening ports and active connections, use the following commands:-
List all listening ports (TCP/UDP):
Open Command Prompt (Admin) and run:netstat -ano | findstr "LISTENING"
- Output Interpretation: Displays PID (Process ID) and port numbers for services listening on the system.
- Example Output:
-
Check active connections (outbound/inbound):
Use:
Firewall and Security Configurations for 3CX Ports
Proper firewall and security configurations are critical to ensuring the integrity, availability, and confidentiality of 3CX communications. Misconfigured firewalls or exposed ports can introduce vulnerabilities, such as unauthorized access, SIP flooding, or data interception. This section outlines the necessary firewall rules, security best practices, and hardening measures to secure 3CX traffic across Windows, Linux, cloud environments, and hybrid setups. Emphasis is placed on restricting unnecessary exposure, enforcing encryption, and mitigating common attack vectors.
Firewall Rules for 3CX Traffic
Firewall rules must be configured to allow 3CX traffic while blocking unauthorized access. The requirements vary based on the operating system and deployment model (on-premises, hybrid, or cloud). Below are the essential rules for Windows Firewall, iptables (Linux), and third-party firewalls, including recommended inbound/outbound policies. - SIP (Signaling): 5060 (non-TLS), 5061 (TLS)
- Media (RTP): Dynamic (range: 10000–20000, configurable)
- Web Interface: 5000 (HTTPS)
- Database (SQL Server): 1433 (if remote access is required)
- VoIP Management: 5090 (3CX Management Console)
- Inbound Rules:
- Allow TCP/UDP 5061 (SIP over TLS) from trusted endpoints (e.g., IP PBXs, SIP trunks).
- Allow UDP 10000–20000 (RTP media) from registered extensions and SIP trunks.
- Allow TCP 5000 (HTTPS) for the web interface, restricted to internal networks or VPN.
- Allow TCP 5090 for the 3CX Management Console, restricted to administrative IPs.
- Outbound Rules:
- Allow UDP 5060/5061 to SIP trunks and VoIP providers.
- Allow UDP 10000–20000 for outbound media streams.
- Allow TCP 443 for updates and cloud services (if applicable).
- Create stateful rules to allow SIP (5061) and RTP (10000–20000) only from whitelisted IPs (SIP trunks, extensions).
- Implement deep packet inspection (DPI) to detect and block malformed SIP packets.
- Use VLAN segmentation to isolate 3CX traffic from other network segments.
- UDP 5060 (SIP non-TLS): Should never be exposed to the internet without TLS encryption.
- TCP 21 (FTP): Disable if not used for file transfers (3CX does not require FTP).
- TCP 3389 (RDP): Restrict to administrative IPs only; use VPN for remote access.
- UDP 161/162 (SNMP): Disable unless monitoring is required.
- TCP 22 (SSH): Restrict to trusted IPs or use SSH keys.
- Windows Firewall:
- Inbound Rules:
- SIP (TLS): UDP 5061 from SIP Trunk IPs (e.g., `203.0.113.5/32`).
- RTP Media: UDP 10000–20000 from registered extensions (e.g., `192.0.2.0/24`).
- Web Interface: TCP 5000 from VPN/Office IP range (e.g., `10.0.0.0/16`).
- Management Console: TCP 5090 from administrator workstation (e.g., `203.0.113.100/32`).
- Outbound Rules:
- Allow all outbound traffic to SIP trunks and VoIP providers (e.g., `0.0.0.0/0` for UDP 5060/5061).
- Priority 100: Allow UDP 5061 from SIP Trunk IPs (e.g., `203.0.113.5`).
- Priority 200: Allow UDP 10000–20000 from extension subnets (e.g., `192.168.1.0/24`).
- Priority 300: Deny UDP 5060 from all sources (unless explicitly required).
- Priority 400: Allow TCP 5000 from VPN range (e.g., `10.0.0.0/16`).
- Use private subnets for 3CX servers and restrict access via NAT Gateway or Bastion Host.
- Enable VPC Flow Logs (AWS) or NSG Flow Logs (Azure) to monitor traffic patterns.
- UDP 5060/5061 – Default SIP signaling (5060) and TLS-secured SIP (5061).
- UDP 10000–20000 – Dynamic RTP ports for audio/video media (range may vary; some providers use 5004–5082).
- TCP 5060/5061 – Fallback for SIP signaling if UDP is blocked (less common but required for some providers).
- VoIP.ms: UDP 5060 (SIP), UDP 10000–20000 (RTP), TCP 5060 (fallback).
- Twilio: UDP 5060/5061 (SIP), dynamic RTP ports (provider-assigned range).
- Flowroute: UDP 5060 (SIP), UDP 10000–20000 (RTP), with support for TLS on 5061.
- STUN (UDP 3478): Used for NAT detection and public IP discovery. Required if behind NAT without public IP.
- TURN (UDP 3478–3480): Relay service for NAT traversal when STUN fails (often dynamic ports).
- ICE (Interactive Connectivity Establishment): Negotiates NAT traversal paths using STUN/TURN, relying on dynamic ports.
-
STUN (Session Traversal Utilities for NAT)
- Purpose: Detects NAT type and public IP without modifying firewall rules.
- Ports: UDP 3478 (default STUN server port).
- Limitations: Fails with symmetric NAT or restrictive firewalls; does not relay traffic.
-
TURN (Traversal Using Relays around NAT)
- Purpose: Acts as a relay server when direct peer-to-peer communication is impossible.
- Ports: UDP 3478–3480 (default TURN server ports), plus dynamic ports for relayed media.
- Configuration: Requires a TURN server (e.g., Coturn) with credentials configured in 3CX.
- Example: If 3CX cannot bind to RTP ports due to CGNAT, TURN relays media through the server.
-
ICE (Interactive Connectivity Establishment)
- Purpose: Dynamically selects the best NAT traversal method (STUN or TURN) during call setup.
- Ports: Uses STUN (UDP 3478) for candidate gathering; falls back to TURN if needed.
- 3CX Setting: Enable SIP ICE Support in the 3CX Management Console under Advanced Settings > SIP Trunk.
- 3CX uses UDP 10000–20000 by default for RTP (adjustable in Advanced Settings > RTP Port Range).
- Providers may restrict RTP ports to a smaller range (e.g., 5004–5082). Ensure alignment with provider documentation.
- Port blocking by ISPs or CGNAT.
- SIP ALG interfering with SIP headers or RTP streams.
- Incorrect NAT traversal settings (STUN/TURN/ICE).
- Firewall rules blocking dynamic RTP ports.
- Provider-specific authentication or IP whitelisting requirements.
-
Port Blocking by ISP or CGNAT
- Symptoms: Registration failures, one-way audio, or calls dropping after setup.
- Diagnosis:
- Verify ISP allows UDP 5060/5061 and dynamic RTP ports.
- Check for CGNAT (use CGNAT Test).
- Test with a public IP (e.g., via a VPN or dedicated line).
- Solution:
- Use a TURN server if CGNAT is confirmed.
- Contact ISP to request port forwarding or static public IP.
-
Misconfigured SIP ALG
- Symptoms: SIP registrations fail, calls hang up immediately, or audio is distorted.
- Diagnosis:
- Check router/firewall for SIP ALG (common in consumer-grade routers).
- Look for errors like "403 Forbidden" or "488 Not Acceptable Here" in 3CX logs.
- Solution:
- Disable SIP ALG in router settings (replace with manual port forwarding).
- Use TLS (TCP 5061) instead of UDP 5060 if ALG cannot be disabled.
-
STUN/TURN/ICE Configuration Issues
- Symptoms: Calls fail to connect, or audio is delayed/interrupted.
- Diagnosis:
- Test STUN with STUN Server Test.
- Check 3CX logs for "No STUN response" or "ICE candidate failed".
- Solution:
- Configure a TURN server (e.g., Coturn) with credentials in 3CX (Advanced Settings > SIP Trunk > STUN/TURN).
- Ensure ICE Support is enabled in 3CX.
-
Dynamic RTP Port Restrictions
- Symptoms: Audio cuts in/out, or calls fail with "No route to host".
- Diagnosis:
- Verify provider’s RTP port range (e.g., 5004–5082).
- Check 3CX logs for "Port already in use" or "RTP timeout".
- Solution:
- Align 3CX’s RTP port range with the provider’s requirements.
- Use a smaller custom range (e.g., 10000–10100) if dynamic ports are blocked.
- Port: 443 (TCP)
- Purpose: Secure HTTP traffic for web client login, dashboard access, and basic VoIP functionality.
- Configuration: Ensure the 3CX server’s SSL certificate is trusted by client devices. If using a reverse proxy (e.g., Nginx, Apache), forward traffic to the 3CX web interface on port 443.
- Ports: Dynamic high-range ports (typically 3478–3481 UDP/TCP or custom ranges)
- Purpose: Handles push notifications, presence updates, and instant messaging.
- Configuration:
- If WebSocket ports are restricted, configure the 3CX server to use a fixed range (e.g., 50000–50100 UDP/TCP) in the Management Console > Advanced > Network Settings.
- For corporate networks, whitelist these dynamic ports in firewalls or proxy servers to prevent disconnections.
- Ports:
- 5060 (TCP/UDP) – Default SIP signaling (unencrypted).
- 5061 (TCP/UDP/TLS) – Encrypted SIP signaling (recommended for security).
- Purpose: Establishes, modifies, and terminates VoIP calls.
- Configuration:
- Ensure the 3CX server’s SIP port (default: 5061 TLS) is whitelisted in client firewalls.
- For internal networks, allow 5060/5061 outbound to the 3CX server’s IP or FQDN.
- Ports: Dynamic ranges (typically 10000–20000 UDP)
- Purpose: Transmits audio/video streams during calls.
- Configuration:
- If RTP ports are blocked, configure a static range in Management Console > Advanced > Network Settings (e.g., 16384–32768 UDP).
- For NAT traversal, enable STUN/TURN settings in the 3CX client under Options > Advanced.
- SIP: 5061 (TLS) – Mandatory for call signaling.
- RTP: Dynamic UDP ports (similar to desktop clients).
- Configuration:
- Ensure TLS 1.2+ is enabled in mobile app settings.
- For corporate Wi-Fi, allow 5061 (TCP/TLS) and dynamic RTP ranges.
- Test VoIP functionality on both Wi-Fi and cellular to identify network-specific issues.
- Port: 5004 (UDP) – Used by Apple Push Notification Service (APNs) for iOS call alerts.
- Configuration:
- iOS devices require port 5004 open for background push notifications.
- Android uses Google Cloud Messaging (GCM) or Firebase, which does not require explicit port configuration but relies on internet connectivity.
- Configuration Steps for Softphones: 1. SIP Server Address: Enter the 3CX server’s FQDN or IP.
- Firewall rules allow 5061 (TLS) outbound.
- The 3CX server’s SIP credentials are correct in the softphone settings.
- DNS resolution works for the 3CX server’s domain.
- Windows Desktop App:
- Options > Advanced > Proxy Settings
- Enable Use Proxy and specify:
- Proxy Server: `proxy.corp.local:8080`
- Bypass Proxy for: `.your3cxdomain.com; 192.168.1.`
- Web Client
Mastering 3CX port requirements is not merely about opening the right channels—it is about creating a secure, scalable, and resilient communication infrastructure. By adhering to the outlined configurations, organizations can mitigate risks such as unauthorized access, call drops, and performance degradation. Whether deploying on-premises or leveraging cloud environments, the principles of port management, firewall optimization, and troubleshooting remain constant. Implementing these guidelines ensures that 3CX systems operate at peak efficiency while adhering to industry security standards.
TCP 0.0.0.0:5060 0.0.0.0:0 LISTENING 1234
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 5678
UDP 0.0.0.0:5060 : 1234
- Action: Verify that 3CX-related ports (e.g., 5060, 443, 5061) are listed. Cross-reference with the PID using Task Manager (`tasklist | findstr
Windows Firewall Rules
Windows Firewall should permit the following ports for 3CX components, with restrictions applied based on deployment (e.g., internal vs. public exposure):
Default 3CX Ports (On-Premises)Recommended Rules:
iptables (Linux) Configuration
For Linux-based systems hosting 3CX, use `iptables` to enforce strict port access. Example rules for a 3CX server on Ubuntu/Debian:
# Allow SIP over TLS (5061) from trusted SIP trunks
sudo iptables -A INPUT -p udp --dport 5061 -s
# Allow RTP media (dynamic range)
sudo iptables -A INPUT -p udp --dport 10000:20000 -m state --state ESTABLISHED,RELATED -j ACCEPT
# Allow web interface (HTTPS)
sudo iptables -A INPUT -p tcp --dport 5000 -s
# Block raw SIP (5060) if not in use
sudo iptables -A INPUT -p udp --dport 5060 -j DROP
# Save rules (Debian/Ubuntu)
sudo apt install iptables-persistent
sudo netfilter-persistent save
Third-Party Firewalls (e.g., pfSense, Cisco ASA)
Blocking Malicious Ports and Unused Services
Exposing unnecessary ports increases the attack surface. Below are critical ports to block or restrict unless explicitly required:Ports to Block or Restrict (Unless Explicitly Needed)Example: Blocking Unauthorized SIP (5060) Exposure
If SIP over UDP (5060) must be used (e.g., legacy trunks), enforce the following:
New-NetFirewallRule -DisplayName "Block Unauthorized SIP (5060)" -Direction Inbound -Protocol UDP -LocalPort 5060 -RemoteAddress Any -Action Block
- iptables:
sudo iptables -A INPUT -p udp --dport 5060 -j DROP
- Cloud Firewall (AWS Security Group):
Explicitly deny all inbound traffic on UDP 5060 unless a specific IP range is whitelisted.
Custom Security Groups for Cloud Environments (AWS/Azure)
Cloud providers offer security groups or network ACLs to restrict 3CX traffic to specific IPs or subnets. Below are configurations for AWS (Security Groups) and Azure (Network Security Groups).AWS Security Group for 3CX
Create a custom security group with the following rules:
Azure Network Security Group (NSG)
Configure inbound rules with the following restrictions:
Best Practice:
TLS vs. Non-TLS Port Configurations
Transport Layer Security (TLS) encrypts SIP signaling, preventing eavesdropping and man-in-the-middle attacks. Below is a comparison of TLS vs. non-TLS configurations, including recommended ports and certificate requirements.| Feature | SIP Non-TLS (UDP 5060) | SIP TLS (UDP 5061) |
|---|---|---|
| Encryption | No encryption (plaintext) | Encrypted (TLS 1.2+) |
| Port |

SIP Trunking and External Connectivity Ports for 3CX
SIP trunking enables 3CX to connect with external VoIP providers, routing calls over the internet while maintaining reliability and call quality. Proper configuration of SIP ports, NAT traversal mechanisms, and firewall rules ensures seamless interoperability between 3CX and providers such as VoIP.ms, Twilio, or Flowroute. Misconfigurations—such as blocked ports, improper SIP ALG settings, or carrier-grade NAT (CGNAT)—can disrupt call establishment, audio transmission, or registration. This section outlines the essential ports, dependencies, and troubleshooting steps for SIP trunking, along with a text-based flowchart illustrating the call path.Essential SIP Trunking Ports and Provider Dependencies
SIP trunk providers require specific UDP and TCP ports for registration, signaling, and media (RTP) exchange. The exact ports may vary slightly by provider, but the following are universally critical:Core SIP Trunking Ports:Provider-Specific Ports:
Providers often document their exact requirements. Examples include:
Dependencies:
NAT Traversal Methods and Required Ports
NAT traversal ensures communication between 3CX (typically behind NAT) and external SIP providers. The primary methods and their port requirements are:Troubleshooting SIP Trunking Failures
Common SIP trunking issues stem from network restrictions, misconfigurations, or provider-specific constraints. Below are systematic steps to diagnose and resolve failures:Root Causes of SIP Trunking Failures:
Text-Based Flowchart: SIP Call Path from 3CX to Provider
Below is a step-by-step representation of a SIP call’s journey, including ports and protocols:[3CX Server] → (UDP 5060) → [SIP Registration] → [Provider SIP Proxy]
↓
[SIP INVITE] → (UDP 5060) → [Provider] → (SIP 200 OK) → [3CX]
↓
[RTP Audio Stream] → (Dynamic UDP Ports, e.g., 10000–20000) → [Provider Media Server]
↓
[NAT Traversal Check] → (STUN/TURN/ICE) → [Public IP Discovery/Relay]
↓
[Media Exchange] → (RTP) → [3CX Endpoint ↔ Provider Gateway]
Key Steps:
1. Registration: 3CX sends REGISTER to provider via UDP 5060.
2. Call Setup: INVITE (UDP 5060) → 200 OK response.
3. NAT Traversal: STUN (UDP 3478) or TURN (dynamic ports) resolves NAT issues.
4. Media Path: RTP streams (dynamic UDP ports) traverse NAT via ICE or TURN relay.
5. Provider Routing: Provider forwards RTP
Client-Side Ports for 3CX Phone Systems
The 3CX phone system relies on client-side applications to establish real-time communication, including voice, video, and messaging across various platforms. Proper port configuration ensures seamless connectivity, especially in environments with firewalls, proxies, or restricted networks. This section outlines the ports used by 3CX client applications—ranging from web and desktop interfaces to mobile and softphone integrations—along with proxy configurations and conflict resolution strategies to maintain uninterrupted service.
Client connectivity in 3CX is platform-dependent, with distinct port requirements for web clients, desktop applications, mobile devices, and third-party softphones. Misconfigured ports or conflicts with other applications can disrupt call quality, registration, or push notifications. Below are the standardized port mappings, proxy configurations, and troubleshooting guidelines for corporate networks.
Web Client Port Requirements
The 3CX web client operates over HTTPS for secure communication and dynamically assigns WebSocket ports for real-time updates. These ports must be accessible for seamless functionality, particularly in remote or hybrid work environments.- HTTPS (Standard Web Traffic)
- WebSocket (Real-Time Communication)
Note: WebSocket ports are assigned dynamically by default. Fixed ranges improve reliability in environments with strict NAT traversal or firewall policies.
Desktop Application Port Requirements
The 3CX desktop application (Windows, Linux, macOS) uses SIP for call signaling and RTP for media transmission. Proper port forwarding and firewall rules are critical for call setup, audio/video quality, and system stability.- SIP (Session Initiation Protocol)
- RTP (Real-Time Transport Protocol)
Best Practice: Use TLS for SIP (5061) and SRTP for RTP to encrypt all media traffic, mitigating eavesdropping risks in unsecured networks.
Mobile Application Port Requirements
3CX mobile apps (Android/iOS) support VoIP over cellular/Wi-Fi, with additional ports for push notifications and background call handling. Mobile networks introduce unique challenges, including carrier restrictions and dynamic IP assignments.- VoIP Traffic (Cellular/Wi-Fi)
- Push Notifications (iOS/Android)
Warning: Some mobile carriers block non-standard ports (e.g., RTP ranges). Test with a static RTP range (e.g., 50000–50100 UDP) if calls fail on cellular networks.
Softphone Port Requirements
Third-party softphones (e.g., Bria, Yealink, Cisco Jabber) integrate with 3CX via SIP and RTP, requiring explicit port configurations to avoid registration failures or call drops. Below are the standard port mappings for common softphones:| Softphone | SIP Port | RTP Port Range | Additional Notes |
|---|---|---|---|
| Bria (CounterPath) | 5061 (TLS) | 10000–20000 UDP | Supports SRTP; configure in Account Settings. |
| Yealink | 5061 (TLS) | 16384–32768 UDP | Use Account > Advanced for custom ports. |
| Cisco Jabber | 5061 (TLS) | Dynamic (configurable) | Requires CTI Port settings in 3CX. |
| Zoiper | 5061 (TLS) | 10000–65535 UDP | Supports STUN/TURN for NAT traversal. |
2. Transport: Select TLS (port 5061) for encrypted signaling.
3. RTP Ports: Use the default range or match the 3CX server’s static range.
4. STUN/TURN: Enable if behind NAT (e.g., stun.3cx.com or corporate TURN server).
Troubleshooting Tip: If a softphone fails to register, verify:
Corporate Proxy Configuration for 3CX Traffic
Restricted networks often require proxy configurations to route 3CX traffic through corporate firewalls or PAC (Proxy Auto-Configuration) files. Below are the recommended settings for seamless integration.- Proxy PAC File Example
PAC files dynamically route traffic based on destination URLs or ports. For 3CX, prioritize direct connections to the 3CX server while routing other traffic through the proxy.
function FindProxyForURL(url, host) {
// Allow direct connection to 3CX server (replace with your domain/IP)
if (shExpMatch(host, "*.your3cxdomain.com") ||
isInNet(host, "192.168.1.0", "255.255.255.0") ||
dnsDomainIs(host, "local")) {
return "DIRECT";
}
// Route all other traffic through the proxy
else {
return "PROXY proxy.corp.local:8080";
}
}
- Proxy Settings in 3CX Clients
The interplay between SIP trunk providers, client applications, and network security tools necessitates a proactive approach to port administration. From verifying open ports with diagnostic tools to designing custom security groups in AWS or Azure, each step contributes to a robust deployment. As communication technologies evolve, staying informed on port dependencies—such as STUN, ICE, and WebRTC—will further enhance system adaptability and user experience.
Leave a Comment
Comments are moderated before appearing. The data you submit is processed according to the Privacy Policy of www.linuxunplugged.com.