Display Public IP Address using Command-Line in Linux
Posted by
trendoceangd
on Jun 15, 2022 3:18 PM
By TREND OCEANS
Mail this story
Web version
There are two ways to retrieve external/public IP addresses for your Linux server or system. The fastest method is by resolving the DNS (dig, host), and the other is by retrieving server data through the HTTP protocol (cURL, wget).
Full Story
Printed at http://lxer.com/module/newswire/view/317000/index.html