Added Popup with QR-Codes for easier server-connection and app-download (open with F11)
This commit is contained in:
1 parent
524d0bee75
commit
ae0e63d193
9 files changed
+424
-1
No files matched your search
@@ -203,6 +203,18 @@ namespace ServerLib
|
||||
_Init(port, encrypted);
|
||||
}
|
||||
|
||||
public static string GetLocalAddress()
|
||||
{
|
||||
IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName());
|
||||
string IPAddress = "";
|
||||
foreach (IPAddress ip in ips)
|
||||
{
|
||||
if (ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
|
||||
IPAddress = ip.ToString();
|
||||
}
|
||||
return IPAddress;
|
||||
}
|
||||
|
||||
#region server control
|
||||
|
||||
private void _Init(int port, bool encrypted)
|
||||
|
||||
Reference in new issue
Block a user