XCUITest / WDA: Usage of the capability wdaLocalPort

Hey, what I am trying to do is setting up a parallel test execution with Appium, XCUITest, WDA on real devices (iPhones).

I am starting two appium server nodes with different ports, different udids for the iPhones and different values for wdaLocalPort. When I start my tests everything is ok for the first test scenario. Trying to start the second test scenario on my two iPhones leads to an iproxy error (208).

What confuses me:
The log says that the usage of wdaLocalPort sets the port on my mac to let’s say 8111 and it is still 8100 on the device (iPhone). How can I change the iproxy port on the device, too? Do I even have to change it?

That’s the error I get:
[debug] [XCUITest] Starting iproxy to forward traffic from local port 8111 to device port 8100 over USB
[debug] [iProxy] bind(): Address already in use
[debug] [iProxy] Error creating socket: Address already in use
[XCUITest] Error: iproxy exited with code ‘208’

Thanks for your help / ideas / thoughts :slight_smile:

1 Like

Hallo @n-jooy, do you have any idea regarding this issue?
thank you

@n-jooy
I have the same issue(

I have the same issue too :frowning: Please let me know if you are able to resolve the issue.

this issue is fixed with the last Driver release. I have installed it and i can run my tests without socket hang up.
You can try it by installing appium with the --no-shrinkwrap option:
npm install -g appium --no-shrinkwrap