4 ms·
I found myself doing the same just a few days ago when my local server suddenly had a new ip address. I made a simple script to scan IP addresses in the range:
by bajsejohannes 10y ago
I found myself doing the same just a few days ago when my local server suddenly had a new ip address. I made a simple script to scan IP addresses in the range: https://gist.github.com/johshoff/bed463ce8a122123e60bbc84bd1b1129 https://gist.github.com/johshoff/bed463ce8a122123e60bbc84bd1...
There are probably faster ways, but none that I could think of a the time.
- pritambaral 10y ago> There are probably faster ways, but none that I could think of a the time For future reference, `nmap -p22 --open 192.168.1.*` does everything your rust script currently does. Nmap is THE tool for the job of network scans. IMO, it should be in the toolbelt of every techie that deals with any sort of computer network.
- brobinson 10y agoCool program. Other quick ways besides the mentioned nmap: ping the broadcast address (if ICMP is allowed) or install avahi-daemon and you can just refer to "your-machines-hostname.local"