static void Main(string[] args)
{
try
{
String ip = DefaultIp;
int port = DefaultPort;
if (LoadKey() && CheckSteamKit())
{
// Use the specified ip address, if any
if (args.Length >= 1)
{
String useIp = args[0];
ip = useIp;
}
// Use the specified port number, if any
if (args.Length >= 2)
{
int usePort;
if (int.TryParse(args[1], out usePort))
{
port = usePort;
}
}
SteamDroidServer server = new SteamDroidServer();
server.Start(ip, port);
}
}
catch (Exception e)
{
Logger.Get().Log("Exception: " + e.Message);
Console.ReadLine();
}
}