---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/31530#article
headline: "31530: DNS Resolution Error"
url: https://www.twilio.com/docs/api/errors/31530
inLanguage: en
dateModified: 2026-03-20T20:33:25.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 31530: DNS Resolution Error

Log Level: ERROR

## Description

This indicates that the Voice client could not connect to the server.

### Possible causes

* Your network is restrictive or uses a VPN, and ICE gathering cannot reach Twilio from all available interfaces.
* Your firewall blocks the outgoing `UDP` traffic required for Twilio Voice media, or it does not allow the Twilio signaling and media destinations your SDK needs.
* You are connecting from a restricted network without providing ICE servers from Twilio Network Traversal Service.

### Possible solutions

* Enable `enableIceGatheringOnAnyAddressPorts` in `ConnectOptions` so ICE candidates are gathered from all available interfaces on Android or iOS.
* Provide ICE servers from Twilio Network Traversal Service through `ConnectOptions` or `AcceptOptions` when your network requires `TURN`.
* Allow outgoing `TCP` and `UDP` traffic to Twilio's signaling and media infrastructure, or use `TURN` over `TCP` or `TLS` if `UDP` is restricted.

#### Additional resources

* [Voice SDKs Network Connectivity Requirements](/docs/voice/sdks/network-connectivity-requirements)
* [Voice Mobile SDKs: Best Practices](/docs/voice/sdks/mobile-best-practices)
