Unet - Where/How to start implementing Host Migration?
Hey everybody!
I've been working on a multiplayer fps and I'm really far into it but I have no idea where to start with host migration! Any time the host disconnects the lobby gets disbanded and the entire game ends for everybody... So far I've tried overriding functions like OnServerDisconnect on the NetworkManager in conjunction with unity's NetworkMigrationManager but I haven't had any luck. Any advice??
I've googled, searched through docs and forums, and just about everything else... It seems that most people just say host migration doesn't work but most of those posts are from 2016 and earlier. Unity's documentation suggests that it's possible but don't really show how it's implemented.
Does Host migration even work with Unet in 2018???
Answer by RaL · Feb 13, 2018 at 03:15 PM
No, the built in NetworkMigrationManager does not work, unfortunately. However, there's a plugin on the Asset Store called "NAT Traversal" which not only adds NAT punch-through and automatic port forwarding, but also fixes host migration. Give it a try.
hey RaL! Thanks so much for the tip, but do you have any more advice on how I might get started with implementing that? Thanks!