public static NetworkItem GetNetworkItem()
        {
            NetworkItem NetworkItemObj = new NetworkItem();
            bool        IsGetOne       = false;

            foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces())
            {
                if (ni.NetworkInterfaceType == NetworkInterfaceType.Wireless80211 || ni.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
                {
                    NetworkItemObj.Name = ni.Name;
                    foreach (UnicastIPAddressInformation ip in ni.GetIPProperties().UnicastAddresses)
                    {
                        if (ip.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
                        {
                            NetworkItemObj.IP = ip.Address.ToString();
                            IsGetOne          = true;
                        }
                        // break for get one
                        if (IsGetOne)
                        {
                            break;
                        }
                    }
                }
                // break for get one
                if (IsGetOne)
                {
                    break;
                }
            }
            return(NetworkItemObj);
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            NetworkItemObj = new NetworkItem();
            /// change IP
            NetworkItemObj = NetworkConfig.GetNetworkItem();
            Log(NetworkItemObj.Name + ", IP: " + NetworkItemObj.IP);

            NetworkWork();

            ChangeIPServerWork(NewIP);

            ChangeIPServerMySql(NewIP);
        }