LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-16-2021, 06:49 PM   #1
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,151

Rep: Reputation: 73
Find the ips of all machines connected to my local network


Is there some way to find the ips of all machines connected to my local network without going to each machine and running ifconfig?

I want to try a reverse use of rsync, get files from a remote machine to my localhost.

Normally, I just use rsync to send files to my older laptop as a backup.

Imagine you had a room full of computers (I don't) and you want to collect all the files in /home/user/python/classwork/
 
Old 07-16-2021, 08:00 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,293

Rep: Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672Reputation: 3672
If all are on same lan segment and no dedicated switch and they are all in use then arp.

Ping has a way but it assumes clients reply.

https://stackoverflow.com/questions/...-local-network

Usually I go to the switch.
 
1 members found this post helpful.
Old 07-16-2021, 08:36 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
For a home network you likely have a router and have access to it. You can log in there and find all the connected devices with their IPs.

If you only have a few devices it seems easiest to get the IP directly from the machine if the router idea does not work for you.

nmap is another way. Use "man nmap" for info.
I just ran "sudo nmap -T4 -sn 192.168.2.1-254" to do a ping scan of my LAN in about 10 seconds.

Last edited by computersavvy; 07-16-2021 at 08:39 PM.
 
2 members found this post helpful.
  


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
Find IPs in a local network with arp-scan dorsio Linux - Networking 2 10-26-2015 04:49 AM
iptables blocking all ips except US & US Amazon. Can't log dropped IPs. mcginlej Linux - Networking 3 10-08-2013 01:18 PM
Using lsof or netstat to view all IPs connected to my host Tryum Linux - Networking 3 06-14-2012 01:06 PM
Routing to internet through one network, and to local ips in another network IceDane Linux - Networking 6 04-02-2009 02:21 AM
Install an RPM automatically in all the machines connected via LAN through Server? m_w_sundaram Linux - Newbie 3 10-22-2008 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:25 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