If you are disconnected from Discord voice and text channels every five minutes while using a specific internet service provider, you are experiencing a gateway disconnect loop. This problem occurs when Discord’s WebSocket connection to its servers is interrupted by your ISP’s network routing or traffic management policies. This article explains why the disconnect loop happens specifically with certain ISPs and provides step-by-step fixes to resolve it permanently.
Key Takeaways: Fix Discord Gateway Disconnect Loop on Specific ISP
- User Settings > Advanced > Developer Mode: Enable to see raw gateway connection data in console logs.
- Windows Settings > Network & Internet > Proxy > Use a proxy server: Turn off to prevent proxy interference with Discord WebSocket.
- Command Prompt > ipconfig /flushdns: Clears DNS cache that may be causing routing failures.
Why Discord Gateway Disconnects Repeatedly on Certain ISPs
Discord uses WebSocket connections to maintain a persistent link between your client and its servers. This connection is sensitive to network interruptions. Some ISPs, particularly those in regions with aggressive traffic shaping or restrictive routing policies, can break this WebSocket connection at regular intervals. The disconnect typically happens every five minutes because many ISPs force a session timeout or reset TCP connections after a set period. This is not a Discord server outage — it is a network-level issue caused by how your ISP handles long-lived connections. The gateway disconnect loop manifests as a “WebSocket close” error in Discord’s console logs followed by automatic reconnection, which fails repeatedly until you take corrective action.
How the ISP Routing Causes the Loop
When your computer sends data to Discord, it goes through multiple routers owned by your ISP. If any router in that path has a misconfigured timeout or drops packets from specific ports, the WebSocket connection breaks. Discord’s client attempts to reconnect, but the same router behavior causes another disconnect after the same interval. This creates a loop every five minutes. The problem is ISP-specific because not all providers use the same routing hardware or timeout settings.
Steps to Fix the Gateway Disconnect Loop
These steps are ordered from simplest to most comprehensive. Try each step in sequence until the problem stops.
- Flush DNS and Reset Network Stack
Open Command Prompt as administrator. Typeipconfig /flushdnsand press Enter. Then typenetsh int ip resetand press Enter. Finally typenetsh winsock resetand press Enter. Restart your computer. This clears any corrupted DNS entries and resets network adapters to default settings. - Disable Proxy Settings in Windows
Go to Windows Settings > Network & Internet > Proxy. Under “Use a proxy server,” turn the toggle to Off. If a proxy is enabled, it can interfere with Discord’s WebSocket connection. After disabling, restart Discord. - Change Discord Voice Server Region
Open Discord and go to Server Settings > Overview > Server Region. Select a region different from your default, such as a neighboring country’s server. Click Save Changes. This routes your traffic through a different data center, bypassing the problematic ISP routing. - Enable Quality of Service High Packet Priority
In Discord, go to User Settings > Voice & Video. Scroll to Quality of Service and toggle “Enable Quality of Service High Packet Priority” to On. This tells your network adapter to prioritize Discord traffic, which can prevent timeouts caused by other background traffic. - Change Discord Gateway Protocol to UDP
In User Settings > Voice & Video, scroll to the Voice section. Under “Voice Protocol,” select “UDP” instead of “Automatic” or “TCP.” UDP is less likely to be throttled by ISPs that target TCP connections. Click the “Reset Voice Settings” button at the bottom to apply defaults, then re-select UDP. - Use a VPN to Bypass ISP Routing
Install a reliable VPN service that offers servers outside your ISP’s network. Connect to a VPN server in a region where Discord operates normally (e.g., a server in the same country as Discord’s data centers). Launch Discord after the VPN connection is established. The VPN encrypts your traffic and routes it through a different path, bypassing the ISP’s aggressive timeout rules. - Contact Your ISP and Request a Routing Change
Call your ISP’s technical support. Tell them you are experiencing a five-minute disconnect loop with Discord’s WebSocket connection. Ask them to check for any traffic shaping rules that may be resetting TCP connections every 300 seconds. If they cannot disable those rules, request a static IP address or ask them to whitelist Discord’s server IP ranges. Discord publishes its server IP ranges at discord.com/developers/docs/topics/voice-connections. Provide that list to your ISP.
If Discord Still Has Issues After the Main Fix
Gateway Disconnect Loop Persists After VPN
If the disconnect continues even with a VPN active, the problem may be with the VPN provider itself. Some VPNs also terminate long-lived connections. Try a different VPN protocol, such as OpenVPN instead of WireGuard, or switch to a VPN server in a different country. Alternatively, disable the VPN and try using Discord through a mobile hotspot to confirm the ISP is the root cause.
Discord Reconnects But Loses Audio After Five Minutes
If the gateway stays connected but audio drops, the issue is likely UDP port blocking. Go to User Settings > Voice & Video and change “Voice Protocol” to “TCP.” This forces audio over TCP, which is more stable on restrictive networks but may increase latency. If TCP works, your ISP is blocking UDP ports 50000-65535 that Discord uses for voice.
Only One Device on the Network Has the Problem
If your computer disconnects but your phone or another PC on the same network does not, the issue is local to your computer. Check for third-party firewall software, antivirus with network monitoring, or VPN clients that may be interfering. Temporarily disable all security software and test Discord. If the problem stops, add Discord to the software’s whitelist or exception list.
| Item | Without VPN | With VPN |
|---|---|---|
| Connection stability | Disconnects every 5 minutes due to ISP timeout | Stable if VPN bypasses ISP routing |
| Voice quality | May degrade or drop during disconnect | Normal, latency may increase by 10-30 ms |
| Configuration required | Flush DNS, disable proxy, change voice region | Install VPN client and connect to server |
| ISP dependency | High — ISP routing directly causes the loop | Low — traffic is encrypted and rerouted |
The gateway disconnect loop on a specific ISP is a network routing issue, not a Discord defect. By flushing DNS, disabling proxies, changing voice regions, or using a VPN, you can restore a stable connection. For a permanent fix, contact your ISP and request a routing change or whitelist Discord’s server IP ranges. If you manage a Discord server, enable server region auto-switching in Server Settings > Overview to help members with ISP issues connect to the best available data center.