Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gpspad

macrumors 6502a
Original poster
Feb 4, 2014
696
47
This may be an obvious one, and I know i can get an app to do it.....

But is there any quick way to get an IP Address of something shown in the network tab of the finder?

In my mind, I don't know why I just can't right click an item and get the IP Address, but I'd guess that would be easy.

Is there any command line tools that would give me a list of all the computers on the local network?
 
  • Like
Reactions: DaltonRandall

barbu

macrumors 65816
Jul 8, 2013
1,263
1,052
wpg.mb.ca
certainly, go to the computer in question in Finder and select it, then hit Cmd-c to copy the name. Now open Terminal.app and enter "ping -c 1 <paste name>.local" -- make sure you add the .local part. Press enter and you will get output like this:

% ping -c 1 example.local
PING example.local (10.0.0.201): 56 data bytes
64 bytes from 10.0.0.201: icmp_seq=0 ttl=32 time=29.905 ms

voila, you have resolved the IP.
 

gpspad

macrumors 6502a
Original poster
Feb 4, 2014
696
47
Thanks that seems to work, it works for anything with a one word name, but any computer with two names and spaces it doesn't. Thats kind of what I'm looking for though.
 

BrianBaughn

macrumors G3
Feb 13, 2011
9,838
2,505
Baltimore, Maryland
Another reason to give computers network names with no spaces!

However, it's no big deal as I believe you can use "\ " instead of " ". Easier to remember might be putting the name in quotes like "Joes iMac.local" so that the command would look like:

ping -c 1 "Joes iMac.local"
 

gpspad

macrumors 6502a
Original poster
Feb 4, 2014
696
47
I did't know that you shouldn't give computer names with spaces. It seems like OS X and other systems go out of there way to do that. I'll have to remember that for my next network.

Any other rules of thumb for computer names for hard drive names?
 

barbu

macrumors 65816
Jul 8, 2013
1,263
1,052
wpg.mb.ca
Thanks that seems to work, it works for anything with a one word name, but any computer with two names and spaces it doesn't. Thats kind of what I'm looking for though.
I think you just need to add dashes where the spaces are in the name.

% ping bobs-imac.local
 
Last edited:

BrianBaughn

macrumors G3
Feb 13, 2011
9,838
2,505
Baltimore, Maryland
I did't know that you shouldn't give computer names with spaces. It seems like OS X and other systems go out of there way to do that. I'll have to remember that for my next network.

Any other rules of thumb for computer names for hard drive names?
You extrapolated that out of my statement. Computer names with spaces are fine and no different than hard drive names or folder names with spaces when it comes to Terminal commands.
 

mmomega

macrumors demi-god
Dec 30, 2009
3,888
2,101
DFW, TX
This may be an obvious one, and I know i can get an app to do it.....

But is there any quick way to get an IP Address of something shown in the network tab of the finder?

In my mind, I don't know why I just can't right click an item and get the IP Address, but I'd guess that would be easy.

Is there any command line tools that would give me a list of all the computers on the local network?
Opening Terminal and
arp -a
will
list every device with an IP address on the network. Everything
Along with its mac address and name if it has one or can be read.

If you want an app, you can get IP Scanner.
Most if not all of the Free scanners will limit how many devices it shows you, usually between only 5-10 devices.
The paid ones will list everything and a few more options, you'll just have to read and see if they are worth it for you.
 
  • Like
Reactions: Flint Ironstag

Beau Slim

macrumors newbie
Sep 12, 2017
22
4
arp is the way. But do a broadcast ping first:
ping 192.168.0.255
or whatever your network is with a 255 on the end. This should pick up any network hosts that your computer hasn't communicated with yet since boot.
 

Erehy Dobon

Suspended
Feb 16, 2018
2,161
2,017
No service
I did't know that you shouldn't give computer names with spaces.
This is nothing new; this behavior has been around for decades.

As you are now aware, it is better to omit spaces because adding them back in requires more work. Same with punctuation.

In the old days, it was advised not to use underscores in URLs because a normal hyperlink is underlined which obscures the underscore character.

gpspad_Mac_1
gpspad Mac 1

Are there underscores in the second underlined one? Go ahead: cut both lines and paste into a plain text document. (Answer: no, there are not underscores in the second line.)

The underscore character also requires the typist to press the shift key which is an additional keypress.

Same with FunKy CapiTAlizaTion.

gpspadmac1 is ten key presses
gpspad_Mac_1 is fifteen key presses (two for each underscore, and extra key press for the capital 'M')

That's 50% more key presses for a little more legibility. Is it worth it? Some would say 'yes'; others would say 'no'.

This Q&A forum uses BB software. Look at the URL in browser address bar. It has dashes instead of underscores. The forum software uses the thread subject title, forces lower case and replaces spaces with dashes to create the thread's URL.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.