Thank you for the tutorial, it helps a lot.
I made it working for Unity + dotnet server but one thing was blocking, peer.Tag, and i dont know exactly why :
public void OnPeerDisconnected(NetPeer peer, DisconnectInfo disconnectInfo) {
if (peer.Tag != null) // always null, so removed to make it work
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for the tutorial, it helps a lot.
I made it working for Unity + dotnet server but one thing was blocking, peer.Tag, and i dont know exactly why :
public void OnPeerDisconnected(NetPeer peer, DisconnectInfo disconnectInfo) {
if (peer.Tag != null) // always null, so removed to make it work