public static void Main(string[] args) { MapleServer server = new MapleServer( IPAddress.Parse("127.0.0.1"), // OR: //GetLocalIP(), advertise: true, processMode: RequestProcessMode.Parallel ); server.Start(); Console.WriteLine($"Server is listening on {server.IPAddress}"); Console.WriteLine("Press any key to exit."); Console.ReadKey(); server.Stop(); Console.WriteLine("Goodbye."); }
public void Stop() { _server.Stop(); Debug.Print("Maple server stopped."); }