👉 NEW: Automatic performance & error tracing on every browser check. Learn more

Monitoring local environments with ngrok

Checkly allows you to check your publicly accessible websites and APIs. However, by default Checkly won’t have access to sites that aren’t publicly available (for instance localhost).

With ngrok you can secure a tunnel to your localhost, so you can run checks on your internal sites directly, without the need to deploy every change.

  1. Go to ngrok’s site and create an account.

  2. Download Ngrok, install it and get it started.

  3. Say you want to run checks on http://localhost:3000, you’ll need expose port 3000, with the command ./ngrok http 3000, or ngrok http 3000 if you extracted ngrok on your system’s $PATH.

  4. You’ll get a screen similar to this. ngrok screen

  5. Then you can use the “forwarding” URL in Checkly. script including ngrok URL

  6. The check will successfully reach your localhost and ngrok will show successful HTTP requests. ngrok 200 http requests

Ngrok UI feature to inspect requests

If you navigate to the Web Interface URL returned in the terminal by ngrok (in the case shown above, you will be able to inspect requests. ngrok ui feature

Known limitations

The free version of ngrok allows to proxy connections only for one hour, then you need to manually restart ngrok, the proxy address will change and you will have to manually update the Checkly check with the new address.

Such limitation doesn’t exist with the paid version.

This is v1 documentation. We are working on providing documentation on how to setup ngrok so it runs on a permanent basis.