1 заметка с тегом
ip
Linux: How to get an external IP address from the command line
5 января 2017, 10:30
curl smart-ip.net/myip
or
dig +short myip.opendns.com @resolver1.opendns.com
or
#!/bin/bash
MYIP=$(wget -O - -q icanhazip.com);
echo $MYIP;