How to get IP addresses to display on Mac desktop/background? Same as how VNC works on PC's?

Posted on 2015-01-05
Last Modified: 2015-01-08
hi guys,

We have upgraded a lot of our Macs to the new Yosemite version. However, we would like their IP addresses to be displayed on the background so that when we want to remotely access them, we can ask the user to give them to us and proceed instead of the painstaking 'please go to system preferences-?network-..etc'.

Do you guys know of any applications that do this? On Windows we use Ultra-VNC and it works perfectly.

Thank you
Question by:Yashy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 53

Accepted Solution

strung earned 250 total points
ID: 40531846
I haven't tried it, but this free utility purports to display the IP address in the menubar:
LVL 40

Assisted Solution

by:Eoin OSullivan
Eoin OSullivan earned 250 total points
ID: 40531855
One option is to create a little AppleScript .. Open a new script file in Script Editor on OSX .. paste in the code below and save it as an Application and put it on all users desktops .. they double click and the app will show their network IP address .. you can customise the script to just show LAN IP address if you want

Code below courtesy of site link above
script by Phil Stokes
property theNext : ""
property theNetwork : ""
property theRouter : ""
property theLocalNode : ""
on getIP()
                set myTemp to do shell script "mktemp -t txt"
                do shell script "curl -s &> " & myTemp & " &2> /dev/null"
                # CHANGE THE DELAY HERE…             
                delay 3
                set extIP to do shell script "sed 's/[a-zA-Z/<> :]//g' " & myTemp
                if extIP = "" then
                        set my theNetwork to "No connection"
                else if extIP contains "=" then
                        set theNetwork to "Can't get IP"
                        set theNetwork to extIP
                end if
        on error
                set theNetwork to "No connection"
        end try
end getIP
on getRouter()
                set oldDelims to AppleScript's text item delimiters
                set AppleScript's text item delimiters to "gateway:"
                set theGateway to do shell script "route get default | grep gateway"
                set AppleScript's text item delimiters to oldDelims
                set theRouter to the last word of theGateway
        on error
                set my theRouter to "No connection"
        end try
end getRouter
on getLocalNode()
                set theIP to (do shell script "ifconfig | grep inet | grep -v inet6 | cut -d\" \" -f2")
                set theLocalNode to the last word of theIP
        on error
                set theLocalNode to "Can't get Local IP"
        end try
end getLocalNode
on getCopyItem()
                set theList to {"Router", "Local IP", "External IP"}
                choose from list theList with prompt "Choose an item to copy:"
                set myResult to (item 1 of the result)
                if myResult = "Router" then
                        set the clipboard to theRouter
                else if myResult = "Local IP" then
                        set the clipboard to theLocalNode
                        set the clipboard to theNetwork
                end if
        end try
end getCopyItem
on userInfo()
        display dialog "Router: " & theRouter & return & return & "Local IP: " & theLocalNode & return & return & "External IP: " & theNetwork buttons {"OK", "Copy", "Try Again"} cancel button {"OK"} with title "Your IP addresses" default button "Try Again"
        set theNext to the button returned of the result
        return result
end userInfo
                if result = "Try Again" then
                else if theNext = "Copy" then
                        exit repeat
                end if
        on error
                exit repeat
        end try
end repeat

Open in new window


Author Comment

ID: 40535540
Thank you guys for the feedback. Great script there Eonio, thank you

I have a question though. Is there any way that either of these could automatically run?

I've got the Macs on the domain and when you look at the users, they have the 'login items'. However, is there a way to make this happen for global users instead of having to logon as the user, go to Login items and select a script or application to run? Is there a way to make it run globally for all users?

thanks again
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 53

Expert Comment

ID: 40535554
I would be surprised if the utility that I recommended did not run automatically. The installer for menubar items usually sets them to run automatically by default.
LVL 40

Expert Comment

by:Eoin OSullivan
ID: 40535586
If the application is added as a login item it will automatically run on login .. no need to manually run it .. but it can be run manually too on demand if you want by putting the app in the Dock or putting it on the Desktop.

Author Comment

ID: 40537610
I downloaded the Ipmenubar application. However, I ran it and it opens up fine. But it doesn't install really. It runs as an executable when you double click on it, but once you restart the machine and come back on, it's no longer there.
LVL 53

Expert Comment

ID: 40537642
To get it to run automatically, do the following:

1. Save it to the Applications Folder.
2. Double click on it to open in and click Yes on the popup about applications downloaded from the internet.
3. Go to the System Prefs to Users & Groups.
4. If the padlock on the lower left is locked, click on it to unlock it.
5. Click on the Login Items tab.
6. Click on the + sign at the bottom left of the Login Items window and browse to and add the IPMenu app.
7. Restart the computer. The IPMenu item should appear in the menubar.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question