DEV Community

Discussion on: Expose your local 💻 web server to the world 🌐

Collapse
 
whatthehanan profile image
Hanan Hamza

for bash users you can create a bash alias for it like this:

function localserve(){
ssh -R 80:localhost:"$1" ssh.localhost.run
}

and then use it as localserve 3000

Collapse
 
giorgosk profile image
Giorgos Kontopoulos 👀

@whatthehanan thanks for stopping by and for your addition. Indeed it make life easier if one is using this technique a lot.