myip - Get your public IPv4 or IPv6 address
Command line utility to get and display your public IPv4 or IPv6 address.
# Display IPv4 address myip # Display IPv6 address (if available) myip 6
Steve Bertrand, <steveb at cpan.org>
<steveb at cpan.org>
Copyright 2020-2021 Steve Bertrand.
This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:
http://www.perlfoundation.org/artistic_license_2_0
To install Net::MyIP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::MyIP
CPAN shell
perl -MCPAN -e shell install Net::MyIP
For more information on module installation, please visit the detailed CPAN module installation guide.