openatx / wdaproxy

WebDriverAgent Proxy
MIT License
151 stars 60 forks source link

Using another proxy other than 8100 #17

Open KingHueyy opened 5 years ago

KingHueyy commented 5 years ago

Hello, is it possible to use a proxy other than 8100? I can get my build running on the phone utilizing other proxies like 8102 or 8103 but when I try and run wdaproxy 8102 I get “502 Bad Gateway”. Can you advise?

codeskyblue commented 5 years ago

Yes, now only support device wda listen port is 8100

KingHueyy commented 5 years ago

Why is that? Can I adjust something so it’s not just 8100? I’m trying to run multiple instances for connected devices.

codeskyblue commented 5 years ago

8100 is listening on the device, so you no need to change it. wdaproxy listen port can be changed by --port

KingHueyy commented 5 years ago

I have the build running on 8102 and when I run WDAProxy via --port 8102 I get "502 Bad Gateway"

KingHueyy commented 5 years ago

I have solved this. The command line needs to run 8100 to match iproxy / local host and then you can port forward from their using WDA proxy. Thanks for your help!

LeeKayBee commented 4 years ago

I have solved this. The command line needs to run 8100 to match iproxy / local host and then you can port forward from their using WDA proxy. Thanks for your help!

Hey @KingHueyy that is awesome! Bit of a noob here so do you mind explaining detailed steps for this? I'm trying to achieve something similar.

Do i need to run iproxy first and then wda? I have established a connection to the phone before and could use airtest wireless from pc - > iphone but now I'm just getting 502 bad gateway error.

Please just go through your set up steps if possible : )