Appium server cannot start on certain Wifi network


#1

Hi,
I have a problem starting the appium server programatically. I observed that when I connected to a certain Wifi network on my company which require username and password, the server cannot start, and when I change the network the server starts correctly. I did not had such issue until now when i’m back from vacation.

Any idea why I start to get this message:

`0:32:27.581 [main] INFO core.AppiumSetup - Building and starting the server:
e[35m[Appium]e[39m Welcome to Appium v1.10.0
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m port: 4725
e[35m[Appium]e[39m sessionOverride: true
e[35m[Appium]e[39m defaultCapabilities: {
e[35m[Appium]e[39m }
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:4725
FAILED CONFIGURATION: @BeforeSuite setUp
io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/bin/node Arguments: [/Users/zuzeac/.npm-global/lib/node_modules/appium/build/lib/main.js, --port, 4725, --address, 0.0.0.0, --log-level, debug, --session-override, --default-capabilities, {}]
Process output: e[35m[Appium]e[39m Welcome to Appium v1.10.0
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m port: 4725
e[35m[Appium]e[39m sessionOverride: true
e[35m[Appium]e[39m defaultCapabilities: {
e[35m[Appium]e[39m }
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:4725

at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:146)
at core.AppiumSetup.startServer(AppiumSetup.java:28)
at core.TestBase.setUp(TestBase.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:401)
at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4725/wd/hub/status] to be available after 120003 ms
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100)
at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:110)
at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:133)
… 22 more
Caused by: java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:205)
at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:148)
at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75)
… 24 more`


#2

I solve it by changing the DNS address from to 8.8.8.8