Skip to content
Everyday Systems·6 min read

What Actually Happens When You Open a Website

A clear, step-by-step look at everything happening between typing a website address and seeing the page appear on screen.

Why this is hereCompanion guide to HTTP SLA Monitor and TCP & DNS Diagnostics, written in plain language for anyone curious how web traffic travels.

Typing an Address Is Only Step One

When you type shss7.agency into your browser and press Enter, it feels like a single instant jump. Underneath, four or five quick conversations happen across computers before a single word or image renders on your screen.

Understanding those steps turns "the site feels slow today" from a vague guess into something you can actually measure and pinpoint.

Step 1: Finding the Right Door (DNS)

Human beings remember names like github.com or shss7.agency. Routers and servers only talk in numeric addresses such as 76.76.21.21.

So before your browser can even request a web page, it checks your local cache and asks a Domain Name System (DNS) resolver to translate that friendly name into an address. That lookup usually finishes in a handful of milliseconds if it has been asked recently, or slightly longer if a fresh external lookup is required.

  • If DNS fails, your browser never even reaches the website server — it shows "server IP address could not be found".
  • This is why diagnostic tools always check DNS first before assuming the server itself has crashed.

Step 2: Knocking on the Server's Port

Once your browser knows the numeric address, it opens a network connection (TCP) to a specific door on that computer: port 443 for encrypted HTTPS web traffic, or port 80 for plain HTTP.

Before sending your request, your device and the server complete a short handshake to prove both sides can hear each other cleanly and agree on encryption keys so nobody sitting on public Wi-Fi can read what you send.

Step 3: Sending the Request and Waiting

Your browser finally sends a short text message saying what page it wants (GET /work) and waits. The time spent waiting for the server to finish its own work and reply with a 200 OK status code is where most application-side sluggishness shows up.

When I built the uptime monitor (http-sla-monitor), one of the first things I learned was how misleading a simple average response time is:

  • If nine page loads take 30 ms and the tenth freezes for 2,000 ms, the average looks fairly ordinary.
  • Looking at percentiles (such as checking what the slowest 5% of requests experience) immediately flags sporadic bottlenecks that an average hides.
python
# Measuring both typical speed and worst-case spikes keeps latency reports honest
sorted_times = sorted(response_times_ms)
median_speed = sorted_times[len(sorted_times) // 2]
slowest_five_percent = sorted_times[int(len(sorted_times) * 0.95)]

Why Simple Checks Catch Problems Early

Almost every website outage comes down to one of three straightforward failures: a name fails to resolve, a port refuses to answer, or a server starts returning errors slowly. Checking each stage separately — DNS, connection, and HTTP response — tells you right away whether you have a routing problem or an overloaded app.

More Guides & Notes