Cannot Reconnect to server after disconnect

137 views
Skip to first unread message

roozb

unread,
Dec 29, 2019, 5:51:35 AM12/29/19
to lidgren-network-gen3
I'm using Lidgren to connect a unity game to my gameserver. everything works fine. the only problem is when the client disconnects from the server (by loss of internet connection or even manually) it cannot connect again. I have to close and reopen the game to be able to connect again. I have tried this outside the unity too and got the same results:
    client.Connect();  // successfully connects to the server
    wait 1 sec
    client.Disconnect(); // client gets disconnected
    wait 1 sec
    client.Connect(); // server has no reaction to this

Is there something I am missing?
Reply all
Reply to author
Forward
0 new messages