4,461
edits
→Get public IP address from CLI: add a third option |
add get local ip address from cli |
||
Line 54: | Line 54: | ||
$ wget -qO- http://ipecho.net/plain | xargs echo | $ wget -qO- http://ipecho.net/plain | xargs echo | ||
</source> | |||
== Get local IP address from CLI == | |||
<source lang="console"> | |||
$ hostname -I | awk '{print $1}' | |||
192.168.86.21 | |||
</source> | </source> |