Skip to content

Instantly share code, notes, and snippets.

@v2keener
Last active May 2, 2019 15:27
Show Gist options
  • Save v2keener/88f412b29f9aa2a2c2604e05f0675e7f to your computer and use it in GitHub Desktop.
Save v2keener/88f412b29f9aa2a2c2604e05f0675e7f to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in {2..20}; do ping -w 1 -c 1 192.168.1.$i; done | grep ttl
@v2keener
Copy link
Author

v2keener commented May 2, 2019

For my router at 192.168.1.1, this pings to see which endpoints respond to a ping.

Specifically, this Gist helps me find my Ubuntu server when my router's DHCP gives a new IP.

This is a stopgap solution until I am able to log into the router my fiber service provided to me. #tmyk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment