# Override Appium's ios\_webkit\_debug\_proxy default port

**URL:** <https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019>\
**Category:** Support\
**Created:** [November 10, 2015, 1:16pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019 "2015-11-10T13:16:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nir\_soluto](https://discuss.appium.io/user_avatar/discuss.appium.io/nir_soluto/32/958_2.png) [@nir\_soluto](https://discuss.appium.io/u/nir_soluto)\
**Post date:** [November 10, 2015, 1:16pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019/1 "2015-11-10T13:16:50Z")

</div>

Hey,

We’re trying to run tests on several iOS devices connected to the same mac, our app is hybrid and we use physical devices.  
When automating hybrid app we need to have ios\_webkit\_debug\_proxy running on port 27753 for the device we want to automate.

Since this port is default by Appium, we cannot have two webkits running - Appium will always address the device associated with port 27753.  
So my question is this - It there a way to launch Appium with a custom webkit port?

---

<div class="post-metadata">

**Author:** ![ellenjswong](https://discuss.appium.io/letter_avatar_proxy/v4/letter/e/c77e96/32.png) [@ellenjswong](https://discuss.appium.io/u/ellenjswong)\
**Post date:** [November 16, 2015, 11:47pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019/2 "2015-11-16T23:47:24Z")

</div>

I tried to do something similar a while back but hit a dead end. [This issue suggests that Appium only uses the one port to talk to the device.](https://github.com/appium/appium/issues/5223)

---

<div class="post-metadata">

**Author:** ![SeriousBacon](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@SeriousBacon](https://discuss.appium.io/u/SeriousBacon)\
**Post date:** [December 8, 2015, 5:32pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019/3 "2015-12-08T17:32:29Z")

</div>

Did you try:

1. Open Terminal window
2. execute appium/bin/ios-webkit-debug-proxy-launcher.js -c iOSdeviceidentity:debugportnumber -d
3. Open another Terminal window
4. export REMOTE\_DEBUGGER\_PORT=debugportnumber
5. appium.js -a 127.0.0.1 -p 4723 --platform-name iOS --command-timeout 7200 --session-override --isolate-sim-device

This works for me and I can start 3 iOS device automation in parallel but there are issues with the instrument threading causing stability issues.

---

<div class="post-metadata">

**Author:** ![chelladurai](https://discuss.appium.io/user_avatar/discuss.appium.io/chelladurai/32/1660_2.png) [@chelladurai](https://discuss.appium.io/u/chelladurai)\
**Post date:** [January 5, 2016, 10:15pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019/4 "2016-01-05T22:15:56Z")

</div>

I tried your above suggestion but it’s not working for me.

Please find below the error,which am getting  
appium/bin/ios-webkit-debug-proxy-launcher.js -c iOSdeviceidentity:debugportnumber -d  
RUNNING: ios\_webkit\_debug\_proxy -c iOSdeviceidentity:debugportnumber -d  
stderr: Unknown file: iOSdeviceidentity:debugportnumber

stderr: Unknown file: iOSdeviceidentity:debugportnumber  
Unknown file: iOSdeviceidentity:debugportnumber

Kindly help me to fix the issue

---

<div class="post-metadata">

**Author:** ![nagarjuna.kappurapu](https://discuss.appium.io/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@nagarjuna.kappurapu](https://discuss.appium.io/u/nagarjuna.kappurapu)\
**Post date:** [July 5, 2016, 6:30pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019/5 "2016-07-05T18:30:23Z")

</div>

export REMOTE\_DEBUGGER\_PORT=47723  
appium.js -a 127.0.0.1 -p 4723 --platform-name iOS --command-timeout 7200 --session-override --isolate-sim-device.  
How to launch above two commands programatically using java

---

<div class="post-metadata">

**Author:** ![sivan2503](https://discuss.appium.io/letter_avatar_proxy/v4/letter/s/b5e925/32.png) [@sivan2503](https://discuss.appium.io/u/sivan2503)\
**Post date:** [September 6, 2016, 4:11pm UTC](https://discuss.appium.io/t/override-appiums-ios-webkit-debug-proxy-default-port/7019/6 "2016-09-06T16:11:48Z")

</div>

There is a command provided by appium "–webkit-debug-proxy-port " , specifying this with the appium trigger will enable triggering appium server connecting to different iOS\_webkit\_debug\_proxy ports.

Ex:

/Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node\_modules/appium/build/lib/main.js --address “127.0.0.1” --debug-log-spacing --device-name “iPhone 6S Plus” --webkit-debug-proxy-port 9227
