- Home /
Question by
FernandoGBR · Sep 25, 2017 at 05:35 PM ·
networkingport
Using same port after Networkmanager.Destroy()
I want to implement a "go to main menu" while hosting a game.
What I currently do is:
//Destroy(networkManager);
NetworkManager.Shutdown();
SceneManager.LoadScene("Pregame scene");
With the first line uncommented i get "cannot open socket" because port is not available w/o commenting the first line, when i regret to the scene in which the networkManager is placed i get null pointer exception because it does not exists.
What do you think i shall do? I just want to end in the main scene with a clean network.
Thanks.
Comment
Your answer
Follow this Question
Related Questions
Showing a port already occupied but its not actually occupied 0 Answers
Unity networking tutorial? 6 Answers
Simple Networking code does not work 0 Answers
Auto PortForward 0 Answers
Unity Networking Ports 0 Answers