Skip to content

Instantly share code, notes, and snippets.

@yojona
Created May 15, 2019 14:53
Show Gist options
  • Save yojona/cc3dc74b1d12dfcfdcd0da6f59b64817 to your computer and use it in GitHub Desktop.
Save yojona/cc3dc74b1d12dfcfdcd0da6f59b64817 to your computer and use it in GitHub Desktop.
Expose your localhost to internet
# Add this function to your source
expose () {
if [ -n "$1" ]; then
ssh -R $3:80:$1 serveo.net
else
ssh -R 80:$1 serveo.net
fi
}
# example: expose localhost:3000 as myapp
# https://myapp.serveo.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment