Skip to content

Comments

Add -ping_bind_port flag to change default ping server binding.#135

Closed
brotchie wants to merge 1 commit intojhead:masterfrom
brotchie:master
Closed

Add -ping_bind_port flag to change default ping server binding.#135
brotchie wants to merge 1 commit intojhead:masterfrom
brotchie:master

Conversation

@brotchie
Copy link

@brotchie brotchie commented Dec 6, 2020

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.

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.
@jhead
Copy link
Owner

jhead commented Jan 1, 2021

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 -bind_port 19132. Let me know if it doesn't do exactly what you need!

@jhead jhead closed this Jan 1, 2021
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