Files
PemukulPaku/Program.cs
rafi1212122 f294d9faa4 login 💀
2023-05-25 15:28:43 +07:00

24 lines
865 B
C#

using Common.Resources.Proto;
using Common;
using System.Net.NetworkInformation;
namespace PemukulPaku
{
class Program
{
public static void Main()
{
Console.WriteLine("Hello!");
GetPlayerTokenRsp getPlayerTokenRsp = new()
{
Msg = "Hello!"
};
new Thread(HttpServer.Program.Main).Start();
Global.config.Gameserver.Host = NetworkInterface.GetAllNetworkInterfaces().Where(i => i.NetworkInterfaceType != NetworkInterfaceType.Loopback && i.OperationalStatus == OperationalStatus.Up).First().GetIPProperties().UnicastAddresses.Where(a => a.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork).First().Address.ToString();
Console.WriteLine(Global.config.Gameserver.Host);
Console.ReadKey(true);
}
}
}