How to get Logs form the server

Dec 16, 2016 at 9:59 PM
Hello,

I trying to write an own RCON client for a Game.

I can send commands and get the results for it, but I dont get any logs.

I have tried other RCON Client tools they work as expected.
                UdpClient listen = new UdpClient(0);
                ushort localPort = (ushort)((IPEndPoint)(listen.Client.LocalEndPoint)).Port;
                listen.Close();
                server.Rcon.AddlogAddress("0.0.0.0", localPort);

                Console.WriteLine("\nPress any key to Stop listening.");
                QueryMaster.GameServer.Logs logs = server.GetLogs(localPort);
                logs.Listen(x => Console.WriteLine(x));
                logs.Start();
                Console.ReadKey();
                logs.Stop();
did I something wrong? Or which IP adress is requiered for the AddlogAddress() ?