Start a TCP tunnel
Webrelay can provide instant, secure public endpoints for exposing local TCP servers to the internet. This capability is particularly useful for developers who need to demo a TCP application running on their local machine to a client or a colleague, or for applications that need to receive TCP connections. 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.
Example
Start a simple TCP server on your local machine using netcat
sudo nc -lk 12345 | while read line; do echo "$line"; done
This will start a TCP server on port 12345.
Start the Webrelay tunnel
To start a tunnel, run the following command
webrelay tcp -p 12345
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 endpoint provided by Webrelay.