browserstack / browserstack-local-csharp

CSharp bindings for BrowserStack Local
https://www.browserstack.com
MIT License
3 stars 12 forks source link

Can't run with proxy #18

Open xenaree opened 7 years ago

xenaree commented 7 years ago

the proxy option doesn't work. I was able to open the local connection using the browserstacklocal.exe using this command: BrowserStackLocal.exe --key xxxxxxxx --local-proxy-host 10.2.2.2 --local-proxy-port 80 --force-proxy --force-local

But it doesn't work if i add

new KeyValuePair<string, string>("proxyHost", "10.2.2.2") 
new KeyValuePair<string, string>("proxyPort", "80")

I get the error:

An unhandled exception of type 'System.Exception' occurred in BrowserStackLocal.dll

Additional information: Binary not found or failed to launch. Make sure that BrowserStackLocal.exe is not already running.
punitx commented 7 years ago

@xenaree You are receiving this error because either BrowserStackLocal.exe is already running on your system or some other process is listening on port 45691. Can you check these conditions before executing the code?