Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Network Discovery (from linux)

Featured Replies

Trying to discover hosts in a subnet from a linux box and here is what I came up with so far


 


Using a BASH script:



subnet=192.168.2.
addr=1
while [ $addr -lt 256 ]; do
ping -c 1 -t 1 $subnet$addr > /dev/null && echo Found $subnet$addr
let addr=addr+1
done

OR this script may work better



subnet=192.168.2.
for addr in `seq 1 1 255 `; do
( ping -c 1 -t 1 $subnet$addr > /dev/null && echo Found $subnet$addr ) &
done

OR even ping the broadcast address like this



ping -b 192.168.2.255

OR use arp-scan (if loaded)




sudo arp-scan -I eth0 192.168.2.0/24

OR utilize nmap (one of my favorite discovery tools)





nmap -v -sP 192.168.0.0/16 10.0.0.0/8


 

OR even another script



FOR /L %i IN (1,1,254) DO ping -n 1 10.254.254.%i | FIND /i “Reply”>> ipaddresses.txt


Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.