• Latest
  • Trending
  • All
Answer card: ipconfig on Windows, ip addr on Linux, ifconfig on macOS for the local IP, and curl ifconfig.me for the public IP.

How to show your IP address from the command line

3 September 2026
Answer card stating that Mullvad announced on 3 September 2026 that it is shutting down its public encrypted domain name system servers on 2 November 2026 and sponsoring the Quad9 Foundation instead, with 194.242.2.2 and its five sibling addresses all going away, and virtual private network customers unaffected.

Mullvad’s DNS servers go dark on 2 November, and Quad9 blocks no ads

5 September 2026
OpenAI announcement image for GPT-6 Astra, a spiral galaxy of white, blue and amber points of light curling around a bright core on a near black star field.

GPT-6 Astra lists at $10 and $50, 2.5x what GPT-5.6 Sol costs

6 September 2026
Google's official announcement image for the release, reading Introducing Gemini 3.8 Flash and 3.8 Flash Cyber in black type over a pale blue background with a blurred white chevron and the four colour Gemini spark below.

Gemini 3.8 Flash keeps the price and the 1 January cliff

3 September 2026
Answer card stating that Anthropic announced Enterprise Frontier Safeguards on 1 September 2026, that activity data used for misuse monitoring moves into cloud storage the customer controls under the customer own encryption keys, that Anthropic charges nothing for the feature while the cloud provider bills storage and egress, and that the phased rollout starts later in autumn 2026 with interim zero data retention on Fable 5 and Fable 5.1 for eligible customers.

Anthropic moves retention into your own cloud, for 30 days

3 September 2026
Official Google diagram of a client connection in three numbered steps: a DNS lookup with a query and an address, a TLS ClientHello and ServerHello, then a content exchange with a website. A callout on the DNS step reads 25% of global web traffic is now protected by encrypted DNS, and a callout beside an Android phone on the ClientHello step reads Android 17 supports ECH GREASE by default.

Android 17 hides the SNI, not your DNS or destination

3 September 2026
Still frame from the Claude Fable 5.1 launch video showing model-designed protein binders in orange docked against twelve grey target proteins, rendered as ESMFold2 structure predictions.

Claude Fable 5.1 breaks forced tool use, cuts cache 75%

1 September 2026
Answer card stating that on 31 August 2026 the European Commission designated ChatGPT a Very Large Online Search Engine under the Digital Services Act, the first conversational AI service classified that way, because it answers user prompts and queries including by searching the web, with OpenAI having declared roughly 159.1 million average monthly users in the European Union for ChatGPT search.

The EU now calls ChatGPT a very large search engine

3 September 2026
Answer card stating that on 31 August 2026 the Department of War added OpenAI ChatGPT Mil and Starshield AI Grok for Government to the GenAI.mil portal alongside Google Gemini, all three accredited at Impact Level 5 for Controlled Unclassified Information, with 1.7 million unique users onboarded out of roughly 3 million eligible personnel, and ChatGPT Mil currently serving GPT-5.4 Terra with GPT-5.6 Terra said to be rolling out.

ChatGPT Mil and Grok reached IL5 on GenAI.mil

3 September 2026
Answer card stating that Anthropic opened a research preview of the Model Hardware Standard on 27 August 2026, standardising the driver layer between an operating system and a laboratory instrument with read and write primitives plus discovery and safety limits, reachable through MCP as well as a command line and code files, with no public specification published.

Anthropic’s Model Hardware Standard is gated, and sits under MCP

3 September 2026
Official Cohere key art for the Parse 5 launch: the Cohere mark and the wordmark Parse with a superscript 5 in white, centred on a soft out of focus gradient of deep blue, violet and amber curves.

Cohere Parse 5 is $1.50 per 1,000 pages, on three of five dimensions

3 September 2026
Title card from the OpenAI announcement video: a man sits on a blue sofa in a loft with tall windows and potted plants, a laptop open on the coffee table in front of him, with the words WebMCP in ChatGPT in large white type across the lower left.

WebMCP in ChatGPT needs GPT-5.6 Sol or Terra

3 September 2026
The Agentic Coding section of the official Hy4 preview benchmark appendix published by Tencent, a table comparing Hy3 and Hy4 preview against DeepSeek V4 Pro 0813, Qwen 3.8 Max, GLM 5.3, Kimi K3, GPT 5.6 Sol and Claude Opus 5 across SWE-bench Multilingual, SWE-bench Pro, DeepSWE, three SWE Atlas tasks, SWE-Marathon, Terminal-Bench 2.1, NL2Repo-Bench, CyberGym, ProgramBench, PostTrainBench and Harbor-Index.

Tencent’s 770B Hy4 tops one benchmark row in 46

3 September 2026
  • About
  • Contact
  • Privacy
  • Legal
Sunday, September 6, 2026
  • Login
Packet Nebula
  • Home
  • Articles
    • Security
    • Network
    • Dev
    • Sysadmin
    • SEO
    • Email & DNS
  • Tools
    • Network tools: free, fast, no signup
    • Security tools: free, fast, no signup
    • Developer tools: free, fast, no signup
    • Sysadmin tools: free, fast, no signup
    • SEO tools: free, fast, no signup
    • Email & DNS tools: free, fast, no signup
  • Download
  • About
No Result
View All Result
Packet Nebula
No Result
View All Result
Home Network

How to show your IP address from the command line

by stephane
3 September 2026
in Network
0
Answer card: ipconfig on Windows, ip addr on Linux, ifconfig on macOS for the local IP, and curl ifconfig.me for the public IP.
491
SHARES
1.4k
VIEWS
Share on FacebookShare on Twitter

Someone on the phone asks for your IP, and you blank on which command your OS wants. Windows takes ipconfig; Linux wants ip addr, or just ip a if you're typing fast; on a Mac, ifconfig still does the job, and ipconfig getifaddr en0 does it with less noise. Every one of those prints the local address, the private one your router handed out, usually starting 192.168 or 10. That's the number you need for reaching a machine on the same network or checking which interface is actually up. The public address is a different animal. It lives on your router, your machine genuinely has no idea what it is, so we ask an outside service with a one-line curl. Below, the command for each OS, plus how to read past the clutter and why the two addresses never match.

The short answer

Local address: ipconfig on Windows, ip addr (or ip a) on Linux, ifconfig on macOS. The public one, what the internet actually sees, takes curl ifconfig.me on any of them.

ipconfigWindows local IP
ip addrLinux local IP
curl ifconfig.meyour public IP
Answer card showing ipconfig, ip addr and ifconfig for the local IP, and curl ifconfig.me for the public IP.
One command per OS for the local IP, one curl for the public one.

Windows, Linux and macOS

ipconfig dumps every adapter it knows about. On a laptop with a VPN and WSL installed, that’s a screenful. Scan for IPv4 Address under whichever adapter is actually connected, normally Wi-Fi or Ethernet, and skip anything that says media disconnected.

Windows
ipconfig

On Linux it’s ip addr, or ip a if you’re typing fast. The full output is chatty. Honestly we go straight to ip -br addr most days: one tidy line per interface with its address and state, done. ifconfig still works on plenty of boxes, but the distros stopped pointing you at it a while ago.

Linux
ip -br addr

macOS still ships ifconfig, but there’s a shortcut that prints only the address of your main interface. Nothing to parse:

macOS
ipconfig getifaddr en0
Terminal showing ip -br addr listing interfaces with their addresses, then curl ifconfig.me returning the public IP.
Local addresses per interface, then the single public address from curl.

The public IP is somewhere else

Everything above is private. The address the internet actually sees belongs to your router, and your machine genuinely doesn’t know it. So we ask someone outside to tell us:

Linux
curl ifconfig.me

For the full picture (public IP plus what your browser reveals), the What Is My IP tool shows it all in one place, and IP geolocation tells you where any address sits.

Two details that turn a confusing answer into an obvious one. A machine on a VPN has more than one address, and the VPN interface will usually be listed first, so the address you want depends on which network you mean. Read the interface name rather than grabbing the first line.

And hostname -I on Linux is the quick one, but it prints every address on every interface separated by spaces, including Docker bridges. When you want one clean answer for the main interface, ask for it specifically.

Linux
ip -4 -brief addr show scope global

There’s a reason this confuses people. The address your machine knows about usually isn’t the one the internet sees, and if there’s a router between you and the world, which there nearly always is, they’re two genuinely different things. Work out which one the question is about before you go looking.

Frequently asked questions

What’s the difference between my local IP and my public IP?

They're almost never the same number. The local IP comes from your router and only means something on your own network; it usually starts 192.168, 10. or 172.16 to 31. The public IP belongs to the router itself, and that's what websites and remote servers actually see. A whole house of devices shares that one public IP.

My ipconfig output lists several adapters. Which one is mine?

Find the one that's actually connected and shows an IPv4 address: usually "Wireless LAN adapter Wi-Fi" on a laptop or "Ethernet adapter" on a desktop. Anything that says media disconnected can be skipped, and so can the virtual adapters VPNs, VirtualBox or WSL leave behind (unless one of those is what you're after).

How do I get just the public IP without a website?

Ask an echo service with curl. "curl ifconfig.me" or "curl -4 icanhazip.com" prints your public IPv4 and nothing else. Works the same on Windows, macOS and Linux as long as curl is installed, and it ships by default on all three now.

ip addr is a lot of output. How do I trim it?

"ip -4 addr" drops the IPv6 noise, and "ip -br addr" gives you one brief line per interface, which is what we reach for first. Want a single interface? Name it: "ip addr show eth0". On older systems ifconfig still works, but it's not the tool Linux points you at anymore.

Tags: cliguideiplinuxnetworkwindows
Share196Tweet123
stephane

stephane

  • Trending
  • Comments
  • Latest
Answer card: Proton Lumo 2.0 is private by policy, not by locality. Saved history is locked so even Proton cannot read it, but the prompt is decrypted on a Proton EU server to answer it, then forgotten.

Proton Lumo 2.0 review: how private is it, really?

3 September 2026
Google's official announcement image for the release, reading Introducing Gemini 3.8 Flash and 3.8 Flash Cyber in black type over a pale blue background with a blurred white chevron and the four colour Gemini spark below.

Gemini 3.8 Flash keeps the price and the 1 January cliff

3 September 2026
Answer card stating that Anthropic announced Enterprise Frontier Safeguards on 1 September 2026, that activity data used for misuse monitoring moves into cloud storage the customer controls under the customer own encryption keys, that Anthropic charges nothing for the feature while the cloud provider bills storage and egress, and that the phased rollout starts later in autumn 2026 with interim zero data retention on Fable 5 and Fable 5.1 for eligible customers.

Anthropic moves retention into your own cloud, for 30 days

3 September 2026
Answer card: JWTs are not encrypted, anyone can read them; the signature proves who issued the token, not who may read it.

Are JWTs encrypted? No, and the difference will bite you

0
Answer card: a random 8 character password falls in under 2 hours offline, while 16 random characters hold for 1.4 trillion years at the same speed.

How long does it take to crack a password in 2026?

0
Answer card: three DNS records decide if your mail lands or bounces; SPF lists allowed senders, DKIM signs messages, DMARC sets the failure policy.

SPF, DKIM and DMARC explained: the records your email needs

0
Answer card stating that Mullvad announced on 3 September 2026 that it is shutting down its public encrypted domain name system servers on 2 November 2026 and sponsoring the Quad9 Foundation instead, with 194.242.2.2 and its five sibling addresses all going away, and virtual private network customers unaffected.

Mullvad’s DNS servers go dark on 2 November, and Quad9 blocks no ads

5 September 2026
OpenAI announcement image for GPT-6 Astra, a spiral galaxy of white, blue and amber points of light curling around a bright core on a near black star field.

GPT-6 Astra lists at $10 and $50, 2.5x what GPT-5.6 Sol costs

6 September 2026
Google's official announcement image for the release, reading Introducing Gemini 3.8 Flash and 3.8 Flash Cyber in black type over a pale blue background with a blurred white chevron and the four colour Gemini spark below.

Gemini 3.8 Flash keeps the price and the 1 January cliff

3 September 2026
  • About
  • Contact
  • Privacy
  • Legal

Copyright © 2026 Stephane Cardon.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • Articles
    • Security
    • Network
    • Dev
    • Sysadmin
    • SEO
    • Email & DNS
  • Tools
    • Network tools: free, fast, no signup
    • Security tools: free, fast, no signup
    • Developer tools: free, fast, no signup
    • Sysadmin tools: free, fast, no signup
    • SEO tools: free, fast, no signup
    • Email & DNS tools: free, fast, no signup
  • Download
  • About

Copyright © 2026 Stephane Cardon.