Comments on: 4 Ways to Find Server Public IP Address in Linux Terminal https://www.tecmint.com/find-linux-server-public-ip-address/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 12:25:53 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-1551822 Tue, 20 Jul 2021 08:07:32 +0000 https://www.tecmint.com/?p=27829#comment-1551822 In reply to Derek.

@Derek,

Thanks for the tip, it works I tried and it prints the Public IP address on the terminal…

]]>
By: Derek https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-1551741 Tue, 20 Jul 2021 04:26:04 +0000 https://www.tecmint.com/?p=27829#comment-1551741 I like option 2 but grep doesn’t need to be part of it.

You can shorten it to:

$ host myip.opendns.com resolver1.opendns.com| awk '/has / {print $4}'

*Cheers*

]]>
By: Aaron Kili https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-1322086 Fri, 20 Mar 2020 08:00:12 +0000 https://www.tecmint.com/?p=27829#comment-1322086 In reply to daniel.

@daniel

We truly appreciate your feedback. Thanks.

]]>
By: daniel https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-1322026 Thu, 19 Mar 2020 19:35:23 +0000 https://www.tecmint.com/?p=27829#comment-1322026 wget is the fastest way, thanks

]]>
By: Aaron Kili https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-1095301 Mon, 14 Jan 2019 05:52:19 +0000 https://www.tecmint.com/?p=27829#comment-1095301 In reply to ipconfig.in.

@ipconfig.in

Many thanks for sharing, we appreciate.

]]>