Skip to content

Add configurable WebRTC ICE port range - #376

Merged
rtm516 merged 3 commits into
MCXboxBroadcast:masterfrom
carlodrift:feature/configurable-ice-port-range
Jul 22, 2026
Merged

Add configurable WebRTC ICE port range#376
rtm516 merged 3 commits into
MCXboxBroadcast:masterfrom
carlodrift:feature/configurable-ice-port-range

Conversation

@carlodrift

Copy link
Copy Markdown
Contributor

NetherNet uses WebRTC, which gathers ICE candidates from the OS ephemeral port range by default. When running behind a firewall or in Docker with host networking, that forces opening a very large UDP range.

This adds an optional session.ice-port-range config with min/max to pin the WebRTC ICE candidate ports:

session:
  ice-port-range:
    min: 0   # 0 = OS ephemeral (default)
    max: 0

@rtm516

rtm516 commented Jul 15, 2026

Copy link
Copy Markdown
Member

Just to note this will limit the number of users that can join to however many ports you have open

@carlodrift

Copy link
Copy Markdown
Contributor Author

Added a note in the config comment on the impact of a small range.

Each in-progress join uses one port from the range (freed once the player is transferred), so the range caps how many players can be joining at the same moment, not the total player count.

Updated comment for IcePortRange to improve clarity and conciseness.
@rtm516
rtm516 merged commit a96ea4f into MCXboxBroadcast:master Jul 22, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants