You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
676 B
33 lines
676 B
2 weeks ago
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|