Geektool : Display system information on your MacOS X desktop

Download and install geektool : https://www.tynsoe.org/v2/geektool/
Open geektool app.

geektool

Drag and drop Shell on your desktop, and click on command button

geektool

Paste this code bellow to display your local ip and public ip. But you will need to replace 192.168.101 by your network ip address.

echo ''
echo 'Local IP : ' `ifconfig | grep inet | grep 192.168.101 | cut -d' ' -f2`
echo 'Public IP : ' `curl ipecho.net/plain ; echo`

Result :

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.