Pinggy allows you to create HTTP / HTTPS tunnels to your localhost using a single command:
First, run the service you want to share in localhost. You need to know the port where the service is running, for example 8000
. Check if the service is accessible from localhost through http://localhost:8000.
Command to start a tunnel to port 8000
:
ssh -p 443 -R0:localhost:8000 a.pinggy.io
Replace 8000
with the port where your service is running.
ssh -p 443 -R0:localhost:8000 token@a.pinggy.io
Replace 8000
with the port where your service is running, and replace token
with your owntoken.
The above command will provide you http and https URLs as follows:
You can access local server via following URL(s):
http://fakqxzqrohxxx.a.pinggy.online
https://fakqxzqrohxxx.a.pinggy.online
You can access your localhost service using these URLs.
These URLs will change every time you create a new tunnel.
If you want a persistent subdomain upgrade to Pinggy Pro.