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

Improvements for the connect server ip resolve #486

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

sven-n
Copy link
Member

@sven-n sven-n commented Sep 3, 2024

We always have the issue that the server doesn't magically work after it has been installed. One major thing is that the game client gets disconnected after selecting a server in the server list.
I had the idea that, if the client connects, we can look at the Socket.LocalEndPoint to which IP it initially connected. If the ip address of the connect server is the same as the ip of the choosen game server we can assume that the client has also access to the game server by connecting to the same ip address.

Probably needs some additional tests for the different scenarios, so I leave it as draft for now.

@sven-n sven-n marked this pull request as ready for review September 4, 2024 05:33
@sven-n
Copy link
Member Author

sven-n commented Sep 4, 2024

The same logic should be added to the chat server as well, but in a new PR.

@sven-n sven-n merged commit 9413e67 into master Sep 4, 2024
3 checks passed
@sven-n sven-n deleted the dev/improve-ip-resolve branch September 4, 2024 07:44
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.

1 participant