- Home /
What is the proper way to disconnect from a networked game?
Whenever I try to disconnect from a networked game, it seems like (regardless of whether I am a server or a player) I have an issue. If I disconnect and then try to host a game, it says the port is still in use. If I dc and then try to join a game, I can fetch a host list, but I can't do anything with the host data (join, etc).
I've tried disconnecting with both Network.disconnect and Network.closeConnection(0, false). Is there a better way to do this?
I find that if I am the player that remains after the other has willfully disconnected, I can host and join other games just fine.
I can't seem to get the DC to work correctly. Any advice is appreciated.
Please, no comments as answers.
And it really doesn't take much effort to write out disconnect in full. Clear questions get better responses.
Your answer
Follow this Question
Related Questions
How to display player ID on client sides? 1 Answer
Networking questions 0 Answers
Network two players collision 2 Answers
how to find other players in scene in multiplayer game ? 0 Answers