Skip to main content
🎉 A11y Issue Detection Agent is now live! Detect accessibility issues like a WCAG expert with AI. Try now!
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Local Testing with Network Restrictions

Learn how to use Local Testing when your network is behind a proxy, firewall, or VPN.

Test mobile apps that retrieve assets from hosts behind one (or more) proxies

If your mobile app retrieves assets from hosts located behind one or more proxies, you may need to configure the Local Testing connection based on your network restrictions.

If proxy is auto-detected

If your internet access is managed by a proxy server, you can configure the BrowserStack Local application to connect to BrowserStack servers through your proxy.
Follow these steps to configure the connection:

  1. Open a browser and go to the BrowserStack Local page at http://localhost:45454.
  2. Enter your access key.
  3. Click Connect.

If proxy is auto-detected, navigate to local page and enter your key

If your network configuration does not require a proxy or if the proxy is auto-detected, BrowserStack Local starts automatically.

Screenshot showing connection is up and running

If proxy is not auto-detected

If a proxy is required and the app cannot auto-detect the settings, configure the proxy in the BrowserStack application dashboard. Follow the on-screen arrow to the Proxy Details section.

Configure proxy in dashboard using Proxy details section

Depending on your network configuration, the proxy may require only a host and port, or it may also require a username and password.

Proxy details focused in Local Binary Desktop Application with username and password in proxy url

If you are using an MITM proxy

BrowserStack classifies proxies as either transparent or MITM (man-in-the-middle) proxies, depending on whether they inspect the packets passing through them.

If your BrowserStack Local connection does not work after trying the previous configuration, you may be using a MITM proxy. In this case, enable the MITM Proxy option in the application settings.

If you are using a PAC file

If you have a PAC file (Proxy auto-configuration file) to configure your settings without any authentication information, you can enter the location of the file in the PAC File option in the app dashboard.

Test mobile apps that retrieve assets from hosts behind a firewall or VPN

With Local Testing, you can test mobile apps serving content from internal servers that are behind a firewall and/or VPNs.

With Local Testing, you can test apps that retrieve data/content from servers behind firewalls and/or VPNs.

Start by making sure that your machine can access the website. Then, establish a Local Testing connection by following the steps listed in enabling Local Testing.

Additionally, you might need to whitelist Secure WebSocket (WSS) connections to our platform (*.browserstack.com) at port 443.

Next Steps

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