How to forward my local port to public using localtunnel
Port Forwarding using localtunnel
Published in
Apr 11, 2019
What is localtunnel?
localtunnel exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes.
Great for working with browser testing tools like browserling or external api callback services like twilio which require a public url for callbacks.
Pre-requisites
- npm should be installed
Steps
- Open a command prompt and execute these commands
- Install localtunnel
npm install -g localtunnel
3. Finally, forward your local port to public
lt --port <local_port> --subdomain <your_sub_domain>
Ex:
lt --port 8080 --subdomain maxsoft
4. Your public URL will be shown below