Twilio's IP addresses for SIP services
You MUST allow ALL of Twilio's following IP address ranges and ports on your firewall for SIP signalling and RTP media traffic. This is important if you have Numbers in different edge locations and for resiliency purposes (e.g. if North America Virginia gateways are down, then North America Oregon gateways will be used). Twilio does not guarantee which edge location the media will egress from, without using the edge
parameter since it can depend on which PSTN-SIP Gateway delivers the call to which Twilio edge location.
North America Virginia Gateways:
Signalling IPs:
54.172.60.0/30 which translates to: 54.172.60.0 54.172.60.1 54.172.60.2 54.172.60.3 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
54.172.60.0/23 34.203.250.0/23 Port Range: 10,000 to 20,000 (UDP)
North America Oregon Gateways:
Signalling IPs:
54.244.51.0/30 which translates to: 54.244.51.0 54.244.51.1 54.244.51.2 54.244.51.3 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
54.244.51.0/24 Port Range: 10,000 to 20,000 (UDP)
Europe Ireland Gateways:
Signalling IPs:
54.171.127.192/30 which translates to: 54.171.127.192 54.171.127.193 54.171.127.194 54.171.127.195 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
54.171.127.192/26 52.215.127.0/24 Port Range: 10,000 to 20,000 (UDP)
Europe Frankfurt Gateways:
Signalling IPs:
35.156.191.128/30 which translates to: 35.156.191.128 35.156.191.129 35.156.191.130 35.156.191.131 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
35.156.191.128/25 3.122.181.0/24 Port Range: 10,000 to 20,000 (UDP)
Asia Pacific Tokyo Gateways:
Signalling IPs:
54.65.63.192/30 which translates to: 54.65.63.192 54.65.63.193 54.65.63.194 54.65.63.195 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
54.65.63.192/26 3.112.80.0/24 Port Range: 10,000 to 20,000 (UDP)
Asia Pacific Singapore Gateways:
Signalling IPs:
54.169.127.128/30 which translates to: 54.169.127.128 54.169.127.129 54.169.127.130 54.169.127.131 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
54.169.127.128/26 3.1.77.0/24 Port Range: 10,000 to 20,000 (UDP)
Asia Pacific Sydney Gateways:
Signalling IPs:
54.252.254.64/30 which translates to: 54.252.254.64 54.252.254.65 54.252.254.66 54.252.254.67 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
54.252.254.64/26 3.104.90.0/24 Port Range: 10,000 to 20,000 (UDP)
South America São Paulo Gateways:
Signalling IPs:
177.71.206.192/30 which translates to: 177.71.206.192 177.71.206.193 177.71.206.194 177.71.206.195 Ports: 5060 (UDP/TCP), 5061 (TLS)Media IPs:
177.71.206.192/26 18.228.249.0/24 Port Range: 10,000 to 20,000 (UDP)
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.