Connection refused error when using wdaLocalPort

Hello,

Problem
I am having issues with my real iOS devices connecting to my appium server when sending any wdaLocalPort other than 8100 to Appium. I want to be able to use wdaLocalPort so that I can run some parallel tests.

Environnment
Here are the capabilities i am sending:
capabilities = {}
capabilities[“platformName”] = “iOS”
capabilities[“automationName”] = “XCUITest”
capabilities[“deviceName”] = “TestDevice”
capabilities[“udid”] = “udid”
capabilities[“wdaLocalPort”] = 8101
capabilities[“app”] = “settings”
capabilities[“usePrebuiltWDA”] = “true”

Running on a Macbook(intel)
MacOS: 12.6.8
appium: 2.0.1
xcuitest: 4.34.0
Mobile platform/version under test: 15.7

I am building the WebDriverAgentRunner from the xcodeproj that comes with the xcuitest driver

Logs
Here are my appium logs when trying to connect:

Funny thing is if I send the default wdaLocalPort(8100) my device can connect to my appium server perfectly fine.
I was wondering if anyone had any clue what could be the cause of this? Is there some kind of setting i should be tweaking within the xcode project when i am building wda for my device?

you did not mention what error you see while having issue …

hello. has this issue been resolved? I had same issue.