|  | 
 | 
 
 
|  المشاركات 407 |  +التقييم 0.17 |  تاريخ التسجيل May 2019 |  الاقامة |  نظام التشغيل |  رقم العضوية 248 | 
 تمت الإجابة puplic ip and private ip proplem ??!
				تمت الإجابة puplic ip and private ip proplem ??!
		

|  أفضل جواب - كتبه Tefa | 
| مشكله مش من اي بي سورس نفسه الي ناقص ملفات كتير و قاعده المتركبه مش بتاعته | 
 رد: puplic ip and private ip proplem ??!
				رد: puplic ip and private ip proplem ??!
			#region Check IP
            // Get host name
            String strHostName = System.Net.Dns.GetHostName();
            // Find host by name
            System.Net.IPHostEntry iphostentry = System.Net.Dns.GetHostEntry(strHostName);
            // Enumerate IP addresses   
            List<string> ips = new List<string>();
            foreach (var ip in iphostentry.AddressList.Where(ip => ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).ToArray())
            {
                if (!ips.Contains(ip.ToString()))
                    ips.Add(ip.ToString());
            }
            if (!ips.Contains(GameIP))
            {
                Console.WriteLine("Wrong IP !!!!");
                Console.WriteLine("Please Choose One from these");
                for (int i = 0; i < ips.Count; i++)
                {
                    Console.WriteLine((i + 1) + ". " + ips[i]);
                }
                var read = System.Console.ReadKey();
                int no = 0;
                if (int.TryParse(read.KeyChar.ToString(), out no))
                {
                    if (no <= ips.Count)
                    {
                        GameIP = ips[no - 1];
                        IniFile.Write("configuration", "IP", GameIP);
                    }
                }
            }
            #endregion Check IP
 رد: puplic ip and private ip proplem ??!
				رد: puplic ip and private ip proplem ??!
			
		
	 
#region Check IP
            // Get host name
            String strHostName = System.Net.Dns.GetHostName();
            // Find host by name
            System.Net.IPHostEntry iphostentry = System.Net.Dns.GetHostEntry(strHostName);
            // Enumerate IP addresses   
            List<string> ips = new List<string>();
            foreach (var ip in iphostentry.AddressList.Where(ip => ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).ToArray())
            {
                if (!ips.Contains("ipbta3k"))
                    ips.Add("ip bta3k");
            }
            if (!ips.Contains(GameIP))
            {
                Console.WriteLine("Wrong IP !!!!");
                Console.WriteLine("Please Choose One from these");
                for (int i = 0; i < ips.Count; i++)
                {
                    Console.WriteLine((i + 1) + ". " + ips[i]);
                }
                var read = System.Console.ReadKey();
                int no = 0;
                if (int.TryParse(read.KeyChar.ToString(), out no))
                {
                    if (no <= ips.Count)
                    {
                        GameIP = ips[no - 1];
                        IniFile.Write("configuration", "IP", GameIP);
                    }
                }
            }
            #endregion Check IP 
   
	
		
		
		 رد: puplic ip and private ip proplem ??!
				رد: puplic ip and private ip proplem ??!
			| 
 | 
| الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
| 
 | 
| الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة | 
| KINGDOM - EU Private Online Server 10K Drop | AhmedGadd | اعلانات السيرفيرات الشخصية | 0 | 2020-04-18 09:06 PM | 
| Kingdom - eu private server | AhmedGadd | اعلانات السيرفيرات الشخصية | 0 | 2020-04-03 02:27 PM | 
| KINGDOM - EU] Private Online Server 10K Drop] | AhmedGadd | اعلانات السيرفيرات الشخصية | 0 | 2020-04-02 09:12 PM |