...
The simplest way:
Code Block |
---|
wget -qO - ipv4.icanhazip.com |
Option 2: For Ubuntu (and other Debian derivatives), type on the command line:
...
Code Block |
---|
echo "public_ip="$( wget -qO - ipv4.icanhazip.com ) > /batm/config/network |
...
...
The simplest way:
Code Block |
---|
wget -qO - ipv4.icanhazip.com |
Option 2: For Ubuntu (and other Debian derivatives), type on the command line:
...
Code Block |
---|
echo "public_ip="$( wget -qO - ipv4.icanhazip.com ) > /batm/config/network |
...