LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-04-2007, 03:22 PM   #1
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
Get ip address of pcs on my network


How can I get the IP addresses of my machines which are attached to my wireless network ?
 
Old 07-04-2007, 03:39 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

Depends on your network.
Code:
nmap -sP 192.168.0.2/24
would scan all the 192.168.0.X range.

Dave
 
Old 07-04-2007, 03:40 PM   #3
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,295

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
If you have a router, they usually can be displayed in the router.
 
Old 07-04-2007, 03:50 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Yeah, the best place to get this info is probably on the router's ARP cache.

To view the arp cache, use the arp command:
Code:
arp
 
Old 07-05-2007, 07:28 AM   #5
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
if you dont have the tools(or the know how) ask the network admin. He should know
 
Old 07-05-2007, 11:58 AM   #6
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Yeah, the best place to get this info is probably on the router's ARP cache.

A nice trick to go along with this is to ping the network broadcast IP just before checking the ARP cache. It will cause most systems on the network to reply, thus updating the ARP cache.

On wireless networks, another convenient method is just sniff traffic in promiscuous mode as some routers won't store info on associated hosts unless they're DHCP clients.

Last edited by Capt_Caveman; 07-05-2007 at 12:05 PM.
 
Old 07-05-2007, 08:36 PM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,209
Blog Entries: 6

Rep: Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862Reputation: 1862
http://www.fping.com/

fping is a handy little CLI utility that will scan a network and report the IP or Hostname of anything hooked to it. It has a lot of options. Look at the man page.
Examples
Code:
fping -ag 172.16.1.1 172.16.1.100
will report the IP of anything that is alive from .1 to .100
Code:
fping -agd 172.16.1.1 172.16.1.100
would give you the hostnames of anything alive .1 to .100

You can also make a menu item to launch a terminal from within X, it will show you the results for a few secs then exit. Xterm will display as long as it take to scan. So scan farther than you need to.
Code:
xterm -r -e fping -ag 172.16.1.1 172.16.1.200
 
Old 07-06-2007, 04:15 AM   #8
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Quote:
Originally Posted by teckk
Xterm will display as long as it take to scan. So scan farther than you need to.
You might want to use the '-hold' xterm flag, i.e.
Code:
xterm -hold -r -e fping -ag 172.16.1.1 172.16.1.200
Dave
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help me use the crossover cable to network two pcs fatblueduck Linux - Networking 4 09-11-2006 07:05 PM
ssh to 2 PCs on my network remotely? ncsuapex Linux - Networking 5 05-16-2006 02:06 PM
Help all PCs on network system are down Trekker001 Linux - Networking 2 05-11-2005 01:49 PM
Network Mac And Pcs merlin371 Linux - Networking 0 02-18-2004 05:27 PM
How do you network 2 pcs with 1 ADSL connection? Rutnut Linux - Networking 5 05-13-2002 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration