Create Quick and Secure Tunnel from Localhost to the Internet

Create a temporary, secure tunnel between your localhost and the Internet using localtunnel. Useful for running site tests on Internet-based tools like WebPageTest or BrowserStack. Also great for quickly sharing localhost sites with other people. It even supports HTTPS!

# Install localtunnel (Requires Node.js)
npm install -g localtunnel

# Start a local tunnel with whatever port number
# your local server is using
lt --port 80

# Start a local tunnel if your local server
# is using a hostname other than 'localhost'
lt --port 80 --local-host

Adam Walter is a front-end developer, lover of WordPress, and Director of Development at Vital in Portsmouth, NH. Read more about me →