Commit 7417cfb
feat(discovery): add multiple STUN server providers for NAT detection
Expand STUN server list from 2 (Google only) to 5 servers across 4
providers to improve NAT detection success rate.
## STUN Servers Added
| Provider | Address | Port | Notes |
|------------|----------------------|-------|--------------------------|
| Cloudflare | 162.159.207.0 | 3478 | Standard STUN port |
| Twilio | 34.203.251.210 | 3478 | AWS-hosted |
| Nextcloud | 159.69.191.124 | 443 | HTTPS port (firewall-friendly) |
| Google | 74.125.250.129 | 19302 | Primary (existing) |
| Google | 74.125.250.130 | 19302 | Secondary (existing) |
## Benefits
- Multiple providers: If one is blocked, others may succeed
- Multiple ports: 3478, 443, 19302 for firewall bypass
- Geographically diverse: Better latency options
- Port 443 fallback: Often allowed through restrictive firewalls
## Technical Details
- IPs hardcoded for reliability (DNS may be filtered)
- Servers tried sequentially until one responds
- Graceful fallback to local mode if all fail
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 573c7df commit 7417cfb
1 file changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 105 | + | |
| 106 | + | |
110 | 107 | | |
111 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
116 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
117 | 137 | | |
118 | 138 | | |
119 | 139 | | |
| |||
0 commit comments