using System; using System.Net; using System.Net.Sockets; namespace iMonitorApp { // Token: 0x02000003 RID: 3 public class Config { // Token: 0x0600000C RID: 12 RVA: 0x00002AB8 File Offset: 0x00000CB8 public static string GetIP4Address() { string result = string.Empty; foreach (IPAddress ipaddress in Dns.GetHostAddresses(Dns.GetHostName())) { bool flag = ipaddress.AddressFamily == AddressFamily.InterNetwork; if (flag) { result = ipaddress.ToString(); break; } } return result; } // Token: 0x0600000D RID: 13 RVA: 0x00002B0C File Offset: 0x00000D0C public static int GetPortNumber() { return 5659; } } }