Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/bed463ce8a122123e60bbc84bd1...

There are probably faster ways, but none that I could think of a the time.



> 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.


Cool 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"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: