8 lines
134 B
Plaintext
8 lines
134 B
Plaintext
|
echo Public IP
|
||
|
curl -s icanhazip.com
|
||
|
echo
|
||
|
echo Local IP
|
||
|
/sbin/ifconfig enp5s0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
|
||
|
|
||
|
|