// Start the server and connect public static void StartServer() { ClientConfig = new NetPeerConfiguration("GameServer"); //for the client ClientConfig.EnableMessageType(NetIncomingMessageType.DiscoveryResponse); client = new NetClient(ClientConfig); client.Start(); client.DiscoverLocalPeers(12345); }