Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Working with Linux ??? Quick Hacks for the Command Line

You're reading from   Working with Linux ??? Quick Hacks for the Command Line Command line power like you've never seen

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781787129184
Length 222 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
 I»ôfan I»ôfan
Author Profile Icon I»ôfan
I»ôfan
Bogdan Vaida Bogdan Vaida
Author Profile Icon Bogdan Vaida
Bogdan Vaida
Arrow right icon
View More author details
Toc

From localhost to instant DNS


Often, especially when working with other people or when developing integrations with online services, we have to make our computer accessible from the Internet. This information could be obtained from our trusty router, but wouldn't it be easier if we just had a tool that makes our computer port publicly accessible?

Luckily for us there is such a tool!

Meet ngrok, the versatile one line command that makes you forget about router configuration and continuous redeploys. Ngrok is a simple tool that exposes a port from our computer to a unique domain name publicly available on the Internet.

How does it do it?

Well, let's see it in action!

Go to the website, click on the Download button, and choose your destiny. In our case, our destiny is the Linux package in 64-bit. Next, go to the terminal, unzip the file, and copy its contents to the bin folder:

  • cd downloads

  • unzip ngrok.zip

  • mv ngrok ~/bin

Now do a rehash and type the following:

ngrok http 80

We can see that port...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images