+1 vote
by (130 points)

How Can I get my public IP address from the terminal in Ubuntu?

1 Answer

0 votes
by (150 points)

Put the Bash script on the terminal you will see your public IP address.

echo $(wget -qO - https://api.ipify.org)

Welcome to Codeshikari Q&A, where you can ask questions and receive answers from other members of the community.