Skip to content

Leave a self-hosted game as a client then reconnect to it #2699

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

Closed
kevincastejon opened this issue Sep 11, 2023 · 1 comment · Fixed by #2789
Closed

Leave a self-hosted game as a client then reconnect to it #2699

kevincastejon opened this issue Sep 11, 2023 · 1 comment · Fixed by #2789
Assignees
Labels
priority:high This issue has high priority and we are focusing to resolve it stat:import Status - Issue is going to be saved internally type:bug Bug Report

Comments

@kevincastejon
Copy link

kevincastejon commented Sep 11, 2023

I noticed that, after starting a HOST game (StartHost()) , I can leave my own hosted game as a client by using DisconnectClient(0), the server will remain alive and new clients will still be able to join, acting as a "pure" server... except myself !
If one can leave its own server as a client, why not letting him reconnect to it? (or why letting him leave in the first place?)
I've tried calling StartClient() after disconnection but it doesn't work and return false.

Note that I think it could be an interesting feature to be able to leave and join its own hosted game, switching between HOST and SERVER just by connecting to and disconnecting from it.

@kevincastejon kevincastejon added stat:awaiting-triage Status - Awaiting triage from the Netcode team. type:support Questions or other support labels Sep 11, 2023
@NoelStephensUnity NoelStephensUnity added type:bug Bug Report priority:high This issue has high priority and we are focusing to resolve it stat:import Status - Issue is going to be saved internally and removed type:support Questions or other support stat:awaiting-triage Status - Awaiting triage from the Netcode team. labels Dec 7, 2023
@NoelStephensUnity NoelStephensUnity self-assigned this Dec 7, 2023
@NoelStephensUnity
Copy link
Collaborator

This would be a bug.
Thank you for reporting this. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high This issue has high priority and we are focusing to resolve it stat:import Status - Issue is going to be saved internally type:bug Bug Report
Projects
None yet
2 participants