smj/ipbarn
1
0
Fork
You've already forked ipbarn
0
Find your internet facing IPv4 address, by asking the barnyard.
Find a file
2026年04月05日 18:10:39 -07:00
ipbarn minor return code cleanups 2026年04月05日 18:10:39 -07:00
ipbarn2 minor return code cleanups 2026年04月05日 18:10:39 -07:00
LICENSE more animals 2025年03月31日 00:45:09 -07:00
README.md . 2025年05月27日 03:24:55 -07:00

ipbarn

Two simple command line scripts to get your internet facing IPv4 address by asking barnyard animals. Both written in execline

By default, they merely report your IPv4 address.

ipbarn

This can take one of two possible options "-v" or "-a".

  • -v - verbose: reports failures, and animal names.

  • -a - all: runs through the entire list (does not stop on success) this also implies -v

Return code is 0 for success, and 1 for failure. With the -a option, the return code is always 1.

ipbarn2

This works the same as ipbarn above, but does not support the -a option, and will only succeed when two different animals report the same IP address.