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:
- Open a browser and go to the BrowserStack Local page at http://localhost:45454.
- Enter your access key.
- Click Connect.

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

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.

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

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
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!