Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How to find your public IP address from command-line?

Post

How to find your public IP address from command-line?

+3
−0

ip a command will conveniently show the addresses assigned to your network interfaces, but oftentimes this is not what the internet sees your machine as.

So how to find your public IP address from command-line?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

If you want to find your public IP address using the command line, you can utilize tools like "curl" ... (1 comment)
If you want to find your public IP address using the command line, you can utilize tools like "curl" ...
trueframe‭ wrote 9 months ago

If you want to find your public IP address using the command line, you can utilize tools like "curl" or "wget" to request a service that displays your IP address. For instance, you can enter the command "curl ifconfig.me" or "wget -qO- ifconfig.me" (without quotes) in the command line. These commands retrieve your public IP address and display it on the screen. This technique enables you to quickly determine your public IP address for various networking purposes.