Working With Ngrok to host your private ip to public network
Working With Ngrok to host your private ip to public network
○ Open the Start Menu, search for "Environment Variables", and open it.
○ In System Properties, click Environment Variables.
○ Find and edit the Path variable under System variables.
○ Click New and add the folder where ngrok.exe is located (e.g., C:\ngrok).
○ Click OK to save.
4. Verify Installation
Open Command Prompt (cmd) and run:
ngrok --version
Example:
If you're running a server on port 33259 (like a web app, API, or testing server), verify it works
locally:
http://localhost:33259
Explanation of Command:
Step 6: Troubleshooting
If something goes wrong:
1. Server Not Running: Ensure your local server is running on port 33259.
2. Firewall Issues: Allow port 33259 in your system firewall.
3. Detailed Logs: Add --log=stdout to the ngrok command:
ngrok http 33259 --host-header="localhost:33259" --log=stdout
Common Commands
Final Notes
● Make sure your internet connection is stable.
● Free accounts might disconnect tunnels after 8 hours.
● For advanced features like custom domains, upgrade to a paid plan.