Question
What IP addresses do I need to add to my firewall if I'm using Vonage Communication APIs and SIP Trunking?
Applies To
- Communication APIs
- SIP Trunking
- IP Addresses
- Firewall Settings
Answer
If your platform restricts the inbound traffic it can receive using IP address ranges (typically via firewalls), you'll need to add the following IP addresses to your allow lists, depending on the API products you use. These IP ranges are used for receiving HTTP Callbacks (WebHooks), WebSocket Connections, SIP, and RTP/Media.
Vonage's API platform traffic will come from any of the IP addresses included in the referenced subnets.
Primary Subnets
Any function (HTTP Callbacks, WebHooks, WebSocket connections, SIP, and RTP/Media) could use IP addresses included in the following IP ranges. Please allow these ranges to enable seamless communication with Vonage APIs.
- 216.147.0.0/18
- 168.100.64.0/18
SIP IP Addresses
It is highly recommended that the above-mentioned “Primary Subnets” are allowed for SIP, to avoid you needing to make configuration changes in the future. If your SIP trunking platform cannot be configured to allow subnets, the following specific IP addresses should be allowed:
- 216.147.0.1
- 216.147.0.2
- 216.147.1.1
- 216.147.1.2
- 216.147.2.1
- 216.147.2.2
- 216.147.3.1
- 216.147.3.2
- 216.147.4.1
- 216.147.4.2
- 216.147.5.1
- 216.147.5.2
Port Ranges
The following port ranges apply to the various types of traffic which you will exchange with Vonage APIs:
Type of Traffic |
Ports |
HTTP Callbacks (WebHooks) |
As configured by customer (usually TCP ports 80 or 443) |
WebSockets |
As configured by customer (usually TCP port 443) |
SIP |
UDP on port 5060 |
RTP/Media |
UDP ports 10000 - 50000 |
Articles in this section
- Which IP addresses should I allow when using Communication APIs and SIP Trunking?
- An Existing Connection Was Forcibly Closed by the Remote Host
- How can I download my Vonage API account data?
- How long does Vonage API store data?
- Best Security Practices for Your Vonage API Account
- Ensuring HIPAA Compliance When Using the Vonage API Platform