Hi Maesiva,
Thx for quick reply. Unfortunately Appium starting with "appium --address 127.0.0.1" couldn't solve the problem. Also I already starting the appium programmatically here with 127.0.0.1:
public AppiumServiceBuilder appiumServerForIOS(String deviceID, String methodName, String webKitPort) throws Exception {
System.out.println("**********************************************************************\n");
System.out.println("Starting Appium Server to handle IOS::" + deviceID + "\n");
System.out.println("**********************************************************************\n");
File classPathRoot = new File(System.getProperty("user.dir"));
int port = this.ap.getPort();
AppiumServiceBuilder builder = (new AppiumServiceBuilder())
.usingDriverExecutable(new File(Settings.NODE))
.withAppiumJS(new File(Settings.APPIUM_JS_PATH))
.withArgument(GeneralServerFlag.LOG_LEVEL, "info")
.withLogFile(new File(System.getProperty("user.dir") + "/logs/appiumlogs/" + deviceID.replaceAll("\W", "_") + "__" + methodName + ".txt"))
.withArgument(this.webKitProxy, webKitPort)
.withArgument(GeneralServerFlag.LOG_LEVEL, "debug")
.withArgument(GeneralServerFlag.TEMP_DIRECTORY, (new File(String.valueOf(classPathRoot))).getAbsolutePath() + "/target/" + "tmp_" + port)
.withArgument(GeneralServerFlag.SESSION_OVERRIDE)
.usingAnyFreePort()
.withIPAddress("127.0.0.1");
this.appiumDriverLocalService = (AppiumDriverLocalService)builder.build();
this.appiumDriverLocalService.start();
return builder;
}
Which provides me the output here:
org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://127.0.0.1:36626/wd/hub/status] to be available after 120004 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:107)
at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:113)
at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:139)
... 31 more