Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found

Configure your proxy settings

Proxy

Proxies are commonly set up for office networks, remote servers, and sometimes on local machines. Contact your network/IT team to obtain the ‘Proxy Host’ and ‘Proxy Port’ to setup Local Testing for this implementation. Once you obtain the Host and Port, you can establish a Local Testing connection using one of two ways:

If you are using the BrowserStack SDK, add the following snippet to your browserstack.yml file:

browserstack.yml
Copy icon Copy
browserStackLocalOptions:
  proxyHost: 127.0.0.1
  proxyPort: 8000

If your proxy requires authentication, use the following code snippet:

browserstack.yml
Copy icon Copy
browserStackLocalOptions:
  proxyHost: 127.0.0.1
  proxyPort: 8000
  proxyUser: user
  proxyPass: password

MITM Proxy

If your proxy type is MITM (like BrowserMob), you will need the ‘Proxy Host’ and ‘Proxy Port’. Once you have the Host and Port, you can establish a Local Testing connection using one of two ways:

Add the following snippet to your browserstack.yml file:

browserstack.yml
Copy icon Copy
browserStackLocalOptions:
  localProxyHost: 127.0.0.1
  localProxyPort: 8000

If your proxy requires authentication, use the following code snippet:

browserstack.yml
Copy icon Copy
browserStackLocalOptions:
  localProxyHost: 127.0.0.1
  localProxyPort: 8000
  -localProxyUser: user
  -localProxyPass: password

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle