private void Init() { ArrayList LocalIPs = IPUtils.IPAddress(); if (null == LocalIPs) { LocalIP.Text = "127.0.0.1"; return; } if (LocalIPs.Count == 0) { LocalIP.Text = "127.0.0.1"; return; } LocalIP.Text = LocalIPs[0].ToString(); }