If You Want to Be Productive You have to Suck at Something

The worst question my wife used to ask me was: “Did you get everything done today?” The answer was never yes which always meant that it was demoralizing to answer it. It was like my stupid statement…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Getting Local IP and Global IP address in Mac

Finding Global/External IP

You can get your external IP from terminal as follows

or

Finding Local IP

3 methods for finding Local IP are as below :-

Most easy way via GUI is to go to System preferences -> Networks .Here you will see your local IP as shown below

2. Using ipconfig

If we want to get more details, it is possible via Terminal . Unlike Windows , If you type ipconfig in Terminal , you will end up with something like this

We have to specify the following arguments to get your ip

3. Using ifconfig

Alternatively you can also retrieve IP using following command(it is ifconfig not ipconfig)

You will see following output, in which you can see in Bold

we can further filter results by issuing one more grep having something like 192.168 for local IP

Add a comment

Related posts:

How to learn Python

But what was confusing them? What was causing them trouble? What were they unable to understand which prompted them to ask such an open question? Thinking about the question, I realized that they…

Why Is It So Hard To Accept Help?

Some days we all need a helping hand — why do we fight against it so hard.

The future of Monzo Business Accounts

Over the past four months, we’ve been working hard behind the scenes building a business account. And we’ve tested them with 100 business owners so far, who’ve been giving us lots of useful feedback…