Base code for lan multiplayer.