<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IPv4 on Ivan Versluis — Networknet</title><link>https://networknet.nl/tags/ipv4/</link><description>Recent content in IPv4 on Ivan Versluis — Networknet</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 04 Nov 2026 13:55:12 +0100</lastBuildDate><atom:link href="https://networknet.nl/tags/ipv4/index.xml" rel="self" type="application/rss+xml"/><item><title>Discover your public egress IP</title><link>https://networknet.nl/snippets/public-egress-ip/</link><pubDate>Wed, 04 Nov 2026 12:00:00 +0100</pubDate><guid>https://networknet.nl/snippets/public-egress-ip/</guid><description>&lt;p>When I troubleshoot connectivity in enterprise networks, I want to know which public address an external service sees. I run this command from my terminal:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sh" data-lang="sh">&lt;span class="line">&lt;span class="cl">curl -4 ifconfig.io
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>When I need to check IPv6 egress, I use:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sh" data-lang="sh">&lt;span class="line">&lt;span class="cl">curl -6 ifconfig.io
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The &lt;code>-4&lt;/code> and &lt;code>-6&lt;/code> flags select the connection address family. They do not modify the response.&lt;/p>
&lt;h2 id="why-i-use-it">Why I use it&lt;/h2>
&lt;p>My outbound traffic may pass through NAT gateways, HTTP proxies, VPNs or other security appliances. The address returned by &lt;strong>ifconfig.io&lt;/strong> is the public IP seen by that service, which may differ from my workstation&amp;rsquo;s address. If curl uses an HTTP proxy, I may see the proxy&amp;rsquo;s address.&lt;/p></description></item></channel></rss>