-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Announce bound instead of configured server port
If a port number of 0 is chosen then bind() will open a random port in an ephemeral range instead of the provided port number and this port can then be retrieved using getLocalPort(). This enables starting servers on arbitrary ports instead of preconfigured ones. Since only direct connections need to know the port number connections using the registry or LAN can use an ephemeral port number and the connection information tab can display the port direct connections should use. This requires a router with functioning UPnP instead of port forwarding though so is not univerally useful.
- Loading branch information
1 parent
15cc9f3
commit 0177503
Showing
3 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters