Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP_MUX_PORT only applying to first IP in answer #249

Open
caraar12345 opened this issue Feb 25, 2025 · 0 comments
Open

UDP_MUX_PORT only applying to first IP in answer #249

caraar12345 opened this issue Feb 25, 2025 · 0 comments

Comments

@caraar12345
Copy link

Hi there! Thanks for creating broadcast-box -- it's immediately solved an issue I've been stuck on for months and I am elated!

It seems I've found a bug though with how UDP_MUX_PORT applies.

With srflx set, the ANSWER includes the LAN IP, WAN IP (and a second WAN IP?). In that case, only the LAN IP answers with the UDP_MUX_PORT; the two WAN IPs include randomised UDP ports.

Without srflx set, the ANSWER includes the WAN IP twice -- where the first WAN IP is listening on the UDP_MUX_PORT set in .env.production.

(I'm using 111.222.3.444 as a placeholder for my home public IP)

.env.production
UDP_MUX_PORT=62123
#INCLUDE_PUBLIC_IP_IN_NAT_1_TO_1_IP=true
#DEBUG_PRINT_OFFER=true
DEBUG_PRINT_ANSWER=true

#NAT_1_TO_1_IP=1.2.3.4|192.168.1.192 < (unrelated? - this causes 'invalid 1:1 NAT mapping' errors)
INCLUDE_PUBLIC_IP_IN_NAT_1_TO_1_IP=yes
STUN_SERVERS=stun.l.google.com
NETWORK_TYPES=udp4

NAT_ICE_CANDIDATE_TYPE=srflx
ANSWER with NAT_ICE_CANDIDATE_TYPE=srflx set
a=candidate:1639014701 1 udp 2130706431 192.168.1.192 62123 typ host ufrag nEIlQnWTUjUzqpYl
a=candidate:1639014701 2 udp 2130706431 192.168.1.192 62123 typ host ufrag nEIlQnWTUjUzqpYl
a=candidate:2663148295 1 udp 1694498815 111.222.3.444 49280 typ srflx raddr 0.0.0.0 rport 49280 ufrag nEIlQnWTUjUzqpYl
a=candidate:2663148295 2 udp 1694498815 111.222.3.444 49280 typ srflx raddr 0.0.0.0 rport 49280 ufrag nEIlQnWTUjUzqpYl
a=candidate:2663148295 1 udp 1694498815 111.222.3.444 41610 typ srflx raddr 0.0.0.0 rport 41610 ufrag nEIlQnWTUjUzqpYl
a=candidate:2663148295 2 udp 1694498815 111.222.3.444 41610 typ srflx raddr 0.0.0.0 rport 41610 ufrag nEIlQnWTUjUzqpYl
ANSWER without NAT_ICE_CANDIDATE_TYPE=srflx set
a=candidate:2609212084 1 udp 2130706431 111.222.3.444 62123 typ host ufrag yNAmdGYQYdAYJCXZ
a=candidate:2609212084 2 udp 2130706431 111.222.3.444 62123 typ host ufrag yNAmdGYQYdAYJCXZ
a=candidate:2663148295 1 udp 1694498815 111.222.3.444 48992 typ srflx raddr 0.0.0.0 rport 48992 ufrag yNAmdGYQYdAYJCXZ
a=candidate:2663148295 2 udp 1694498815 111.222.3.444 48992 typ srflx raddr 0.0.0.0 rport 48992 ufrag yNAmdGYQYdAYJCXZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant