What is NetworkTransport.Shutdown() doing? When I must to call it?
When I start/stop/start/and so on only NetworkServer I could do not call NetworkTransport.Shutdown(). All is working good.
But when I run also my discavery server and a few times stop and start these servers, then i'm getting an error: Cannot open socket on ip {} and port {7000}; check please your network, most probably port has been already occupied.*
1) So, why is NetworkServer.Shutdown() not always close port?
2) What is NetworkTransport.Shutdown() doing?
3) When to call NetworkTransport.Shutdown()?
In some examples this method is called within OnApplicationQuit event. In another examples after NetworkServer is shutdown. But if I have NetworkServer and discavery server, I must wait for both will be shutdown?
Your answer
Follow this Question
Related Questions
how to spawn a player prefab on a server 0 Answers
How to move an object over the network. If only the client controlls/moves that non-player object? 1 Answer
Unity Networking 1 Answer
UNET | How to use network messages? 1 Answer
Network Soccer Ball Position jitter, sending transform position late? 0 Answers