WebDriverAgent icon indicating copy to clipboard operation
WebDriverAgent copied to clipboard

why macos can'not connect. wda port 8100?

Open kauth-coder opened this issue 10 months ago • 4 comments

Hello, could you please help me when you have time? Thank you. I'm using Xcode to run WebDriverAgent (WDA) on an iPhone XR. The iPhone can successfully access 127.0.0.1:8100 via Safari and see the device information in JSON format. However, when I try to access the iPhone's IP address with port 8100 (e.g., 192.168.x.x:8100) from my Mac, it fails to connect. I also tried using Postman, which returned a 503 error. What should I do to access the WDA port from my computer over the local network?

Image

kauth-coder avatar Feb 04 '26 14:02 kauth-coder

  • The device info like OS version
  • What is the response like curl -i -X GET <url>
  • Did you see any logs in the device log?

KazuCocoa avatar Feb 04 '26 16:02 KazuCocoa

I have solved a situation where this occurs!!! It should be you. iOS On the Wda .The application needs to turn on the network permission.

niany-1 avatar May 25 '26 07:05 niany-1

Hi @niany-1 I've got the same trouble with WDA on iPhone 15 and still not understand where to turn on the network permisson Could you tell more about it, pls?

GFPCommand avatar Jul 17 '26 15:07 GFPCommand

OK, solved this by these steps

  • added NSLocalNetworkUsageDescription to Info.plist for WebDriverAgent-Runner
  • added NSBonjourServices with element _http._tcp After installation go to apps permissions and check network permissions for WebDriverAgent-Runner and set active for WLAN if it's not After these actions WDA start working on iPhone 15 on the network

GFPCommand avatar Sep 28 '26 12:09 GFPCommand