Use it like ssh -R 80:localhost:8888 serveo.net.
When you establish an SSH connection to serveo.net, a subdomain will be assigned to forward HTTP (and HTTPS) traffic to your local server.
Basic usage looks like this:
ssh -R 80:localhost:8888 serveo.net
The -R option instructs your SSH client to request port forwarding from the server and proxy requests to the specified host and port (usually localhost). A subdomain of serveo.net will be assigned to forward HTTP traffic.
Multiple port forwards can be requested at once:
ssh -R 80:localhost:8888 -R 80:localhost:9999 serveo.net
The target server doesn't have to be on localhost:
ssh -R 80:example.com:80 serveo.net
The subdomain is chosen deterministically based on your IP address, the provided SSH username, and subdomain availability, so you'll often get the same subdomain between restarts. You can also request a particular subdomain (from a set list):
ssh -R incubo:80:localhost:8888 serveo.net
ssh -R incubo.serveo.net:80:localhost:8888 serveo.net
Change the SSH username to get assigned a different subdomain:
ssh -R 80:localhost:8888 foo@serveo.net
Ports other than 80 may be requested, and raw TCP traffic will be forwarded. (In this case, there's no way to route connections based on hostname, and the host, if specifed, will be ignored.)
ssh -R 1492:localhost:1492 serveo.net
If port 0 is requested, a random TCP port will be forwarded:
ssh -R 0:localhost:1492 serveo.net
Comments and Reviews
A little bit slow, but it doesn't even require signup and is easy to use and flexible. Very cool. I'll be integrating this into my workflow.
Very cool. I'll be integrating this into my workflow.
Super easy and fast :D Ideal for testing/demo purpose ^^
no download, custom domain name. deserves 5 star