65 words, 1 min read
Recently, I was working on an application that needed to know if it was connected to the internet. A common way to do this is to ping DNS servers like
8.8.8.8
(Google) or1.1.1.1
(Cloudflare). However, this uses the ICMP protocol (which only checks for basic network connectivity), while I wanted to exercise the full stack used by real HTTP clients: DNS, TCP, and HTTP.
continue reading on antonz.org
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.