public static void RequestNATIntroduction(IPEndPoint host, NetPeer peer) { if (host == null) return; if (MonoGamerPeer.m_masterServer == null) throw new Exception("Must connect to master server first!"); NetOutgoingMessage message = peer.CreateMessage(); message.Write((byte) 2); IPAddress address = IPAddress.Parse(MonoGamerPeer.GetMyLocalIpAddress()); message.Write(new IPEndPoint(address, peer.get_Port())); IPEndPoint ipEndPoint = new IPEndPoint(host.Address, MonoGamerPeer.port); message.Write(ipEndPoint); message.Write(peer.get_Configuration().get_AppIdentifier()); peer.SendUnconnectedMessage(message, MonoGamerPeer.m_masterServer); }