Testing your local environment before publishing the changes helps identifying bugs earlier and speeds up development cycle
Sending a request from Loadmill.com to my localhost server is blocked.
When you try to reach localhost on your browser, you are actually trying to connect to your local computer’s ip address, 127.0.0.1. This local IP address is the same for every computer.
However, Loadmill is a SaaS (software as a service) company. That means that Loadmill’s web server runs on another computer somewhere in the world. Therefore, Loadmill.com will send an HTTP request to its own machine’s localhost ip address and not to your server, resulting in an error response.
You can think of it this way: imagine you are on a vacation abroad, and you want to write a letter to your relatives back home. After you finished writing the letter, you would write on the envelope, “my home” as the target address. The mailman will not understand where to send the letter, of course. The mailman has his own idea of “my home”, but it is not your home, but rather, it’s his home. He will need your public home address in order to send the letter to your relatives. This scenario is equivalent to asking Loadmill (the mailman) to send an HTTP request (the letter) to localhost (“my home”).
We recommend using a public url service like ngrock.
Follow these instructions for a quick setup:
Download and install ngrock
Run ngrok - execute the following command in a terminal (assuming your application is using 3000 port):
ngrok http 3000
or, If you’re server is running on HTTPS protocol:
ngrok http https://localhost:3000
Copy the new public URL generated by ngrock:
Paste it in your Loadmill request url box:
And that's it! You are good to go.