Add -ping_bind_port flag to change default ping server binding.#135
Closed
brotchie wants to merge 1 commit intojhead:masterfrom
Closed
Add -ping_bind_port flag to change default ping server binding.#135brotchie wants to merge 1 commit intojhead:masterfrom
brotchie wants to merge 1 commit intojhead:masterfrom
Conversation
When doing DNS hacks to get the Switch to connect to dedicated servers, the target server must be listening on port 19132. This PR enables a user to change the default ping server port so that they can set the bind_port to 19132 to proxy Switch connections.
Owner
|
Hey @brotchie, thanks for the PR! The listeners are setup with SO_REUSEPORT so that both can run in port 19132. That's because the pings specifically only arrive on port 19132 because the games are hardcoded to broadcast pings on that port to all devices on the network. AFAIK if you change that to any other number, the servers won't show up on the LAN server list anymore. It looks like I missed one of the listeners though, so that didn't fully work before. I just released v0.5.3 to hopefully address the issue you describe in a slightly different way by being able to just do |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When doing DNS hacks to get the Switch to connect to dedicated servers, the target server must be listening on port 19132. This PR enables a user to change the default ping server port so that they can set the bind_port to 19132 to proxy Switch connections.