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. Fri, 05 Jan 2024 05:12:29 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-2122620 Fri, 05 Jan 2024 05:12:29 +0000 https://www.tecmint.com/?p=27829#comment-2122620 In reply to Jackie Simpson.

@Jackie,

I appreciate the recommendation! ipaddress.ai does seem straightforward to know the IP address of the system.

Thanks for sharing this handy tool!

]]>
By: Jackie Simpson https://www.tecmint.com/find-linux-server-public-ip-address/comment-page-1/#comment-2122609 Fri, 05 Jan 2024 04:31:47 +0000 https://www.tecmint.com/?p=27829#comment-2122609 I found ipaddress.ai to be the easiest one.

You don’t need to parse/grep/cut anything, you can simply run;

curl ipaddress.ai
]]>
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.

]]>