To set up a HTTP tunnel to port 8080, request a port forward from port 80 by running the following command:
localhost.run forwards HTTP traffic down your tunnel to your app, and automatically adds encrypted HTTPS endpoints for your clients to optionally connect to.
Prefix your domain name with
https:// to access your tunnel over HTTPS, and localhost will unwrap the encryption for you and send the plain HTTP requests to your app.
These can be turned off with a command line option if required.
Clients connecting to port 443 over TLS do not have to talk the HTTP protocol, any protocol from TLS capable client will be sent down your tunnel.
For example, a PostgreSQL server listening on port 5432 could be connected to a tunnel with this command:
and TLS clients could then connect to the generated localhost.run domain on port 443.
Your app connected to your tunnel should be listening for plain TCP because localhost.run will take care of certificates and decryption for you.
Currently only Custom Domains can carry non-HTTP protocols.