public void Stop() { try { Logger.Warn("Stopping server..."); Socket.Stop(); Logger.Success("Server stopped!"); } catch (Exception ex) { Logger.Error("An error occurred while stopping the server!", ex); } }
public void Start() { try { Logger.Info("Starting server..."); Socket.Start(); Logger.Success("Server started on ANY (localhost / " + (NetUtils.GetExternalIp() ?? "external") + ")!"); } catch (Exception ex) { Logger.Error("An error occurred while starting the server!", ex); } }