#ipv6 #ipv4 #address

bin+lib publicip

Get the public ipv4 or ipv6 address

3 releases (breaking)

0.3.0 Nov 25, 2020
0.2.0 Nov 25, 2020
0.1.0 Nov 25, 2020

#35 in #ipv6

MIT license

16KB

publicip

Get your public IP addreess

Install

cargo install publicip

Usage

USAGE:
    publicip [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -4, --ipv4 <ipv4>    Return the IPv4 address [default: true]
    -6, --ipv6 <ipv6>    Return the IPv6 address [default: false]

Examples

$ publicip
10.11.12.10

License

MIT

Dependencies

~11–23MB
~353K SLoC