Test site through VPN or local on browserstack

Browserstack resources:

https://www.browserstack.com/docs/live/local-testing

1 – Install the browserstack local binary

https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip

2 – cd in the directory where the binary is located and run:

./BrowserStackLocal --key t9guUg6zxQ5Y9MBfciaZ

3- in your browser access borwserstack and tick “Resolve all URLs through my network

you can also do that throught cli when running the binary:

./BrowserStackLocal --key t9guUg6zxQ5Y9MBfciaZ --force-local

For local testing, ensure that localhost is served on bs-local.com

see https://www.browserstack.com/docs/live/local-testing/test-using-local-testing