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
:
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.link
https://fakqxzqrohxxx.a.pinggy.link
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.
If you want browsers visiting your Pinggy tunnel URL to only use HTTPS, you can enable the x:https
option. This will redirect browsers visiting any HTTP address to HTTPS.
Just pass the optional x:https
argument at the end of the command the command. In addition, add the -t
option right after the ssh command.
If your localhost server is an HTTPS server that only accepts TLS connections, then use the x:localServerTls
option. This will make Pinggy tunnel connect to your local server using the HTTPS (TLS) protocol only.
You can also set the server name (SNI) used to connect to your local server as by passing adding the argument: x:localServerTls:example.com