Perl script to retrieve an external IP address - LinuxConfig.org

This simple perl script will print your external IP address assigned by you internet provider ( great for someone with dynamic IP address ).


This is a companion discussion topic for the original entry at https://linuxconfig.org/perl-script-to-obtain-an-external-ip-address

Andy

If you’re using wget in a system command, you might as well just use wget - wget ipinfo.io/ip -qO-