public static void StartServer() { var appiumLocalService = new AppiumServiceBuilder(); appiumLocalService.UsingPort(GlobalVar.Port); appiumLocalService.WithIPAddress(GlobalVar.IPAddress.ToString()); appiumLocalService.Build().Start(); }