Exemplo n.º 1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            InitializeServer();

            if (XMLSettings.AutoListen)
            {
                if (XMLSettings.UseUPnP)
                {
                    UPnP.ForwardPort(ushort.Parse(XMLSettings.ListenPort.ToString()));
                }
                ConServer.Listen(XMLSettings.ListenPort);
            }

            if (XMLSettings.IntegrateNoIP)
            {
                NoIpUpdater.Start();
            }
        }
Exemplo n.º 2
0
        private void AutostartListeningP()
        {
            if (XMLSettings.AutoListen && XMLSettings.UseUPnP)
            {
                UPnP.Initialize(XMLSettings.ListenPort);
                ConServer.Listen(XMLSettings.ListenPort);
            }
            else if (XMLSettings.AutoListen)
            {
                UPnP.Initialize();
                ConServer.Listen(XMLSettings.ListenPort);
            }
            else
            {
                UPnP.Initialize();
            }

            if (XMLSettings.IntegrateNoIP)
            {
                NoIpUpdater.Start();
            }
        }
Exemplo n.º 3
0
        private void AutostartListeningP()
        {
            if (Settings.AutoListen && Settings.UseUPnP)
            {
                UPnP.Initialize(Settings.ListenPort);
                ConServer.Listen(Settings.ListenPort);
            }
            else if (Settings.AutoListen)
            {
                UPnP.Initialize();
                ConServer.Listen(Settings.ListenPort);
            }
            else
            {
                UPnP.Initialize();
            }

            if (Settings.EnableNoIPUpdater)
            {
                NoIpUpdater.Start();
            }
        }