![]() Ngrok - tunnel local ports to public URLs and inspect traffic The easiest way to get started is to use your favorite package manager to install ngrok. The ngrok agent is the command line application that you will use to start your tunnels. For the rest of this guide, we will assume we're working with a web service running at but you should adjust the following commands to match your configuration. Now let's use ngrok to securely share it with the world. Unfortunately, this service is only available on your local machine for now. If you have any trouble getting things working, see this page for help. You should see Hello, World! in your browser. This will start a web server on port 8000 serving the contents of that directory. From that folder, run python3 -m rver.Move into that directory and create a file named index.html with a single line of text: Hello, World!.Create a new directory, we'll call it ~/ngrok-rocks.If you don't have a web service running, you can set one up for this demo using Python SimpleHTTPServer. If not, we'll set one up using Python SimpleHTTPServer (ngrok actually has a built in file server but let's not worry about that now). If you already have one, you can skip to Step 2. ![]() Connecting your agent to your ngrok accountįirst, you'll need some sort of web service running on your machine.This guide will get you up and running with the ngrok agent, giving you a secure way to access your local service from anywhere in the world. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |