Dưới đây là tổng hợp những command để lấy public IP của server. Public IP của server chính là địa chỉ IP mà user truy cập vào website của chúng ta hay là địa chỉ IP mà website của chúng ta trỏ tới.
Command 1:
Command 1:
Code: Select all
Command 2:dig +short myip.opendns.com @resolver1.opendns.com
Code: Select all
Command 3:wget http://ipecho.net/plain -O - -q ; echo
Code: Select all
Command 5:curl ipecho.net/plain; echo
Code: Select all
Command 6: curl ip.hostingaz.vn
Code: Select all
Command 7: curl icanhazip.com
Code: Select all
curl ifconfig.me
==> Đăng ký mã VPSSIM Business tại đây ! Thanks.