# WDA is not listening at 'http://localhost:8100/'

**URL:** <https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291>\
**Category:** Tutorials/Documentation\
**Created:** [April 11, 2020, 10:31pm UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291 "2020-04-11T22:31:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Mason](https://discuss.appium.io/user_avatar/discuss.appium.io/jack_mason/32/6807_2.png) [@Jack\_Mason](https://discuss.appium.io/u/Jack_Mason)\
**Post date:** [April 11, 2020, 10:31pm UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/1 "2020-04-11T22:31:25Z")

</div>

I’m working through the Appium Pro Intro Workshop. I’m working on Mac Catalina 10.15.4, XCode version 11.4.  
In the Appium Session Video/Module, The AndroidCapabilitiesTest runs fine.  
The IOSCapabilitiesTest does not.  
I can see on the iPhone 11(running 13.3) simulator the installation and removal of TheApp and the WebDriverAgent. It appears that Xcode automation can’t communicate with WebDriverAgent.

Here is some of the log: [DevCon Factory] Successfully requested the connection for FC279262-79F5-4A9B-9054-791D2504BEB6:8100

[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key ‘XCUITestDriver’

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET [http://localhost:8100/status](http://localhost:8100/status)] with no body

[WD Proxy] Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:8100}

[debug] [XCUITest] WDA is not listening at ‘[http://localhost:8100/](http://localhost:8100/)’

[debug] [XCUITest] WDA is currently not running. There is nothing to cache

[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval

[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities

[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1586642218288 (17:56:58 GMT-0400 (Eastern Daylight Time))

[XCUITest] Launching WebDriverAgent on the device

[WebDriverAgent] Fetching dependencies

[WebDriverAgent] Dependencies up-to-date

[debug] [XCUITest] Killing running processes ‘xcodebuild.\*FC279262-79F5-4A9B-9054-791D2504BEB6, FC279262-79F5-4A9B-9054-791D2504BEB6.\*XCTRunner, xctest.\*FC279262-79F5-4A9B-9054-791D2504BEB6’ for the device FC279262-79F5-4A9B-9054-791D2504BEB6…

[debug] [XCUITest] ‘pgrep -ifn xcodebuild.\*FC279262-79F5-4A9B-9054-791D2504BEB6’ didn’t detect any matching processes. Return code: 1

[debug] [XCUITest] ‘pgrep -ifn FC279262-79F5-4A9B-9054-791D2504BEB6.\*XCTRunner’ didn’t detect any matching processes. Return code: 1

[debug] [XCUITest] ‘pgrep -ifn xctest.\*FC279262-79F5-4A9B-9054-791D2504BEB6’ didn’t detect any matching processes. Return code: 1

[debug] [XCUITest] Beginning test with command ‘xcodebuild build-for-testing test-without-building -project /usr/local/lib/node\_modules/appium/node\_modules/appium-xcuitest-driver/node\_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=FC279262-79F5-4A9B-9054-791D2504BEB6 IPHONEOS\_DEPLOYMENT\_TARGET=13.3 GCC\_TREAT\_WARNINGS\_AS\_ERRORS=0 COMPILER\_INDEX\_STORE\_ENABLE=NO’ in directory ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-xcuitest-driver/node\_modules/appium-webdriveragent’

[debug] [XCUITest] Output from xcodebuild will only be logged if any errors are present there. To change this, use ‘showXcodeLog’ desired capability

[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET [http://localhost:8100/status](http://localhost:8100/status)] with no body

[WD Proxy] Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:8100}

[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’

[debug] [WD Proxy] Proxying [GET /status] to [GET [http://localhost:8100/status](http://localhost:8100/status)] with no body  
…

It keeps trying and eventually fails.

Interestingly, the test appears to rerun or at least I see TheApp and the WebDriverAgent uninstalled and reinstalled twice before the test fails.

I’m thinking I have an XCUITest/XCode and WebDriverAgent version incompatibility issue.

Any feedback on this would be great as I’ve been stuck on this too long.

Thank you.

Jack

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [April 12, 2020, 6:33am UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/2 "2020-04-12T06:33:26Z")

</div>

Make sure the WebDriverAgent sources are signed properly and can be installed on the device. Consider enabling xcodebuild logs in caps to track WDA build progress and make sure you follow [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md)

---

<div class="post-metadata">

**Author:** ![Jack\_Mason](https://discuss.appium.io/user_avatar/discuss.appium.io/jack_mason/32/6807_2.png) [@Jack\_Mason](https://discuss.appium.io/u/Jack_Mason)\
**Post date:** [April 13, 2020, 8:03pm UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/3 "2020-04-13T20:03:25Z")

</div>

Hi Mykola-Mokhnach. Thank you for replying

The WDA does get installed on the device.

I’ll look into determining if the WDA is signed properly and will trying enabling xcode build logs in caps.

I’m using a simulator and working through Appium Pro Intro Workshop, but will check out that document to see if there is something relevant.

Thank you.

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [April 14, 2020, 6:17am UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/4 "2020-04-14T06:17:43Z")

</div>

If this is a simulator then no signing is required. Check xcodebuild logs and make sure you use the most recent Appium server version

---

<div class="post-metadata">

**Author:** ![Jack\_Mason](https://discuss.appium.io/user_avatar/discuss.appium.io/jack_mason/32/6807_2.png) [@Jack\_Mason](https://discuss.appium.io/u/Jack_Mason)\
**Post date:** [April 20, 2020, 11:51pm UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/5 "2020-04-20T23:51:00Z")

</div>

Thank you. Sorry for the long delay.

I’m running v1.16.0 of the Appium Server from the command line.  
I have v1.15.1 desktop version as well but it crashes if I try to use it so I don’t.  
There is not problem building the WDA as it gets deployed.  
Build log looks good:  
SLF010#22%IDECommandLineBuildLog1@0#39"Xcode.IDEActivityLogDomainType.BuildLog63"Testing project WebDriverAgent with scheme WebDriverAgentRunner63"Testing project WebDriverAgent with scheme WebDriverAgentRunnera9dd97fc3427c241^2e7679fd3427c241^-125"note: Using new build system  
note: Building targets in parallel  
note: Planning build  
note: Using build description from disk  
4(21%IDEActivityLogMessage2@22"Using new build system-609118713#18446744073709551615#0#-0#–6"Notice–2@28"Building targets in parallel-609118713#18446744073709551615#0#-0#–6"Notice–2@14"Planning build-609118713#18446744073709551615#0#-0#–6"Notice–2@33"Using build description from disk-609118714#18446744073709551615#0#-0#–6"Notice–0#0#0#—36"723E3BBF-3703-47A9-8302-72B8C3228C0915"Build succeeded-

My V1.6.0 Appium Server output clearly shows that it can’t connect to the WDA:  
Proxying [GET /status] to [GET [http://localhost:8100/status](http://localhost:8100/status)] with no body

[WD Proxy] Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:8100}

I tried checking for ports listening while running the IOSCapabilitiesTest via:  
**lsof -nP +c 15 | grep LISTEN** (less the stars)  
But nothing is running on 8100 before during or after the test.

Might I need to do something with IOS security or even my router to to allow 8100?

Any help is much appreciated as I’m dead in the water.

Jack

---

<div class="post-metadata">

**Author:** ![Snigdha\_Majee](https://discuss.appium.io/user_avatar/discuss.appium.io/snigdha_majee/32/7195_2.png) [@Snigdha\_Majee](https://discuss.appium.io/u/Snigdha_Majee)\
**Post date:** [July 11, 2020, 1:53pm UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/6 "2020-07-11T13:53:02Z")

</div>

Hey @Jack_Mason I am facing the exact situation since last two days. What did you do to eliminate the error? Please help, any help will be greatly appreciated.  
Appium: 1.16.0  
Xcode: 11.5  
IOS: 13.2

---

<div class="post-metadata">

**Author:** ![ankit\_gupta1](https://discuss.appium.io/user_avatar/discuss.appium.io/ankit_gupta1/32/7963_2.png) [@ankit\_gupta1](https://discuss.appium.io/u/ankit_gupta1)\
**Post date:** [August 7, 2020, 1:36pm UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/7 "2020-08-07T13:36:04Z")

</div>

@Jack_Mason @Snigdha_Majee any solution to overcome this? any help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![GrandmasterCJ](https://discuss.appium.io/letter_avatar_proxy/v4/letter/g/f04885/32.png) [@GrandmasterCJ](https://discuss.appium.io/u/GrandmasterCJ)\
**Post date:** [August 21, 2020, 5:31am UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/8 "2020-08-21T05:31:34Z")

</div>

I’ve had the exact same issue the past 2 days. The fix for me was to completely remove appium off machine, reinstall appium via npm, then install latest desktop version. When you run the test for the first time via terminal, it will still give the wda error, but wait a minute and it will get past it successfully. It believe differences in xcode update broke previous versions of appium.

---

<div class="post-metadata">

**Author:** ![Snigdha\_Majee](https://discuss.appium.io/user_avatar/discuss.appium.io/snigdha_majee/32/7195_2.png) [@Snigdha\_Majee](https://discuss.appium.io/u/Snigdha_Majee)\
**Post date:** [August 24, 2020, 7:33am UTC](https://discuss.appium.io/t/wda-is-not-listening-at-http-localhost-8100/30291/9 "2020-08-24T07:33:15Z")

</div>

Hi @ankit_gupta1,  
For me what worked is to follow Raghav Pal tutorial to do iOS automation using Appium: [https://www.youtube.com/watch?v=-](https://www.youtube.com/watch?v=-)_6C_-CMqSk&t=1355s  
But more specifically with this issue, I would suggest you to the following setup and run the automation script once you have xcode and everything set up:  
Build the WDA project:

```
Go to this folder again:

    /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WedDriverAgent

And run the following command:
    
    xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=udid' test 

 udid = device UDID

```

How to get the udid: instruments -s devices (You will get the list of simulator and real devices in booted and shut mode)  
Hopefully this will solve your problem.
