Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Terminal Command or lite app to find IPs in use on LAN?

Terminal Command or lite app to find IPs in use on LAN?
Thread Tools
Dedicated MacNNer
Join Date: Nov 2007
Location: Kathmandu Nepal
Status: Offline
Reply With Quote
May 20, 2008, 11:59 AM
 
HI, I just want to know what machines have been given what IP address on our local network (192.168.x-xxx) via DHCP. I downloaded intermapper, but geez, I just want a quick local list. there must be a way! thx.

Dead MBP 2.2 4gig / New Aluminum iMacs / "Old" iPhones / 1st Gen Ipod Shuffle
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 20, 2008, 12:04 PM
 
Do you control the DHCP server? Is it an actual server, or just an appliance/router? The easiest way would be to get this list from the DHCP server...
     
Dedicated MacNNer
Join Date: Nov 2007
Location: Kathmandu Nepal
Status: Offline
Reply With Quote
May 20, 2008, 12:12 PM
 
thanks besson, yes i am using an airport express as the DHCP router, and Airport Utility maps mac addresses to IP addresses in use. is there something that just maps computer names to IP addresses? thats what i want...

Dead MBP 2.2 4gig / New Aluminum iMacs / "Old" iPhones / 1st Gen Ipod Shuffle
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 20, 2008, 01:56 PM
 
Probably not, Apple generally doesn't offer these sorts of advanced features in their products.

You could write a script to ping the entire netblock, but I don't think it would be able to return the machine name.
     
Senior User
Join Date: Sep 2007
Location: NY
Status: Offline
Reply With Quote
May 21, 2008, 01:06 PM
 
I'd be really interested in having a script for such task. I don't know how often I would run it, but I could definitely see it coming in handy if there is some fishy activity going on.
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
May 21, 2008, 01:17 PM
 
Are all the machines Macs? If so, you could probably use Rendezvous/Bonjour to accomplish this.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Mac Elite
Join Date: Apr 2002
Location: Illinois
Status: Offline
Reply With Quote
May 21, 2008, 09:08 PM
 
nmap will do what you're looking for (ping a range, then ask for the reverse DNS records).
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 21, 2008, 09:50 PM
 
Good post King Bob, I forgot about nmap!

Yeah, you can do a network scan with nmap by doing the following:

nmap -v -sP 192.168.0.0/24

This does a ping scan of 192.168.0.x. Since nmap is not included with OS X you'll have to compile this via Macports.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:21 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2