Command 1. Using wget
# wget http://ipecho.net/plain -O - -q ; echo
Command 2: Using curl
# curl ipecho.net/plain; echo
Command 3: Using wget
# wget http://observebox.com/ip -O - -q ; echo
Command 4: Using curl
# curl icanhazip.com
Command 5: Using curl
# curl ifconfig.me
http://tecadmin.net/5-commands-to-get-public-ip-using-linux-terminal/#
ผมเจอปัญหา ไม่รู้ว่าเครื่องที่ใช้งาน IP จริงคืออะไร ตอนนั้นลง centos แบบ minimal เพื่อใช้งานกับ centos-webpanel (centos-webpanel.com)
facebook
twitter
google+
fb share