Is there a way to display the local IP address on the desktop?

Joined
Oct 24, 2011
Messages
6
Reaction score
0
Points
1
I'm new to Mac, OSX and Lion.

I'd like to have the local IP address (192.168...) along with the IP address(s) of the DNS and gateway displayed on my desktop. How do I do this?

Thanks.
 
Joined
Jan 19, 2008
Messages
4,695
Reaction score
73
Points
48
Location
houston texas
Your Mac's Specs
09 MBP 8GB ram 500GB HD OS 10.9 32B iPad 4 32GB iPhone 5 iOs7 2TB TC Apple TV3
You could just type in Stickies and it would come up when you click on it or type it in Text Edit and do the same thing.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
If you need commands for GeekTool:
DNS Servers (Wi-Fi):
Code:
networksetup -getdnsservers Wi-Fi
DNS Servers (Ethernet):
Code:
networksetup -getdnsservers Ethernet
IP Address (there are other ways to get this but I like this since the output is nice and simple):
Code:
python -c "import socket; print(socket.gethostbyname(socket.gethostname()))"
Default Gateway (you might want to verify this one first:
Code:
netstat -nr | grep "^default" | awk '{ print $2 }'
 
Joined
Oct 21, 2011
Messages
37
Reaction score
3
Points
8
Location
Chicago, IL
Your Mac's Specs
27" 2011 iMac // 12GB RAM // 1TB HDD // 6770MB 512
Is there a way to use this tool and insert multiple commands into a single shell widget? Seems counter intuitive to have a separate widget for each individual command.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top