This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
5 / 5
May 2018

facing the below error while starting Appium using java code.
org.openqa.selenium.WebDriverException:
Connection refused (Connection refused)
Build info: version: ‘3.11.0’, revision: ‘e59cfb3’, time: '2018-03-11T20:26:55.152Z’
System info: host: ‘administratotr-Latitude-E5570’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.19.0-30-generic’, java.version: '1.8.0_171’
Driver info: driver.version: AndroidDriver
Caused by: java.net.ConnectException: Connection refused (Connection refused)

  • created

    May '18
  • last reply

    May '18
  • 4

    replies

  • 1.4k

    views

  • 3

    users

  • 4

    links

Please include the stacktrace and appium.log for triaging. Also what are your capabilities, and how are you starting the appium server?

Try ‘127.0.0.1’ (loopback) or better ‘0.0.0.0’ (INADDR_ANY)

You don’t bother to include the linux distro you are using. ‘127.0.1.1’ should be the loopback interface also, but can have slightly different behaviors depending on the linux distro you are using. It can also be just plain wrong.


Please include the capabilities, stacktrace, and appium log.