public static void StartServer() { UpnpPorts.OpenPort(port); server = new TcpListener(new IPEndPoint(IPAddress.Parse("0.0.0.0"), port)); server.Start(); StartListening(); }
private void Connected() { new Client().ConnectToServer(UpnpPorts.GetIp().ToString()); }
public static void StopServer() { UpnpPorts.RemovePortMapping(port); server.Stop(); }