Skip to main content

Start Https tunnels

Webrelay can also provide instant, secure public URLs for exposing local web servers to the internet. This capability is particularly useful for developers who need to demo a web application running on their local machine to a client or a colleague, or for applications that need to receive webhooks. Webrelay offers this functionality by creating a secure tunnel from a public endpoint on the internet to a local server, effectively bypassing NAT or firewall restrictions.

Webrelay will use Https by default for your tunnels using LetsEncrypt certificates.

Example

Start a simple web server on your local machine using Python

python -m SimpleHTTPServer 8000

or in Python 3

python3 -m http.server 8000

This will start a simple web server on port 8000. You can now access this server at http://localhost:8000

Start the Webrelay tunnel

To start a tunnel, run the following command

webrelay http -p 8000

This will start a tunnel from a public endpoint on the internet to your local web server. You can now access the service using the URL provided by Webrelay.