Last active
March 24, 2024 14:23
-
-
Save vinayakg/8db438e20cf6fdc37bf53acbc0dc47e2 to your computer and use it in GitHub Desktop.
find ip address and their location from live traffic on machine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -iTCP -P | grep Spark | awk '{print $9}' | cut -d '>' -f2 | cut -d ':' -f1 | uniq | xargs -I% curl ipinfo.io/%/org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment