How the Internet Works: What Happens When You Type a URL in Your Browser
Ever wondered what happens behind the scenes when you press Enter in your browser? Learn DNS, IP addresses, HTTP requests, and server responses explained simply.

Header Ad Advertisement
Every single day, you type web addresses like google.com, youtube.com, or learn.vyuhantrix.com into your browser.
Within a fraction of a second, text, images, and videos appear magically on your screen.
What actually happens inside your computer, Wi-Fi router, underground fiber-optic cables, and remote web servers during those few milliseconds?
In this guide, we break down How the Internet Works using simple 8th-grade analogies!
1. Step 1: Typing the URL (Uniform Resource Locator)
When you type https://learn.vyuhantrix.com into your browser address bar:
https://is the Protocol (Secured HyperText Transfer Protocol).learn.vyuhantrix.comis the Domain Name.
๐ The Phonebook Problem: Imagine calling a friend named "Alex". Your phone cannot connect a call to the word "Alex"โit requires Alex's numerical phone number (e.g.
+91 98765 43210).Similarly, internet routers cannot route data to the word
google.comโthey need the server's numerical IP Address (e.g.142.250.190.46).
2. Step 2: The DNS Lookup (Finding the Phone Number)
Your browser immediately asks the DNS (Domain Name System) to look up the IP address for the domain name:
[ Your Browser ] โโโบ "What is IP for google.com?" โโโบ [ DNS Resolver ]
โ
[ Your Browser ] โโโ "IP is 142.250.190.46!" โโโโโโโโโโโโ
- Browser Cache Check: First, your browser checks if it remembered the IP address from a recent visit.
- ISP DNS Resolver: If not cached, it queries your Internet Service Provider (Jio, Airtel, AT&T).
- Root & TLD Servers: The resolver queries top-level domain servers (
.com,.org,.in) to return the exact authoritative IP address.
3. Step 3: Establishing the Connection (TCP 3-Way Handshake)
Now that your computer knows the server's IP address (142.250.190.46), it opens a connection over the internet using TCP (Transmission Control Protocol).
To make sure both sides are ready to talk securely, they perform the TCP 3-Way Handshake:
Client (You) Server (Google)
โ โ
โ โโโ 1. SYN (Hello, can we talk?) โโโโโโโโโโโโโโโโโโบ โ
โ โ
โ โโโ 2. SYN-ACK (Hello! Yes, ready to talk) โโโโโโโโโ โ
โ โ
โ โโโ 3. ACK (Great! Establishing connection) โโโโโโโบ โ
โผ โผ
If the website uses https://, an additional TLS/SSL Handshake occurs to encrypt all data so hackers on public Wi-Fi cannot eavesdrop on your passwords or personal information.
4. Step 4: Sending the HTTP Request
Your browser now sends an HTTP GET Request asking the server for the page code:
GET /blog/how-the-internet-works HTTP/1.1
Host: learn.vyuhantrix.com
User-Agent: Mozilla/5.0 (Macintosh)
Accept: text/html
5. Step 5: Server Response & Rendering
The web server receives the request, fetches the files from its hard drive or database, and sends back an HTTP Response with status code 200 OK:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTTP/1.1 200 OK โ
โ Content-Type: text/html; charset=utf-8 โ
โ โ
โ <!DOCTYPE html> โ
โ <html> โ
โ <head><title>How the Internet Works</title></head> โ
โ <body>...</body> โ
โ </html> โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐จ Rendering the Page in Your Browser:
- DOM Construction: The browser parses the HTML code into a document tree.
- CSS Styling: It downloads CSS files to calculate colors, layouts, and fonts.
- JavaScript Execution: It runs JS code for interactive buttons, animations, and calculators.
6. Summary: The 5-Step Internet Journey
| Step | Action | Time Taken |
|---|---|---|
| 1. Request | You type URL and press Enter | 0 ms |
| 2. DNS Lookup | Browser converts domain to IP Address | 10-30 ms |
| 3. Handshake | TCP & TLS SSL security handshake | 20-50 ms |
| 4. HTTP GET | Browser requests HTML file | 20-40 ms |
| 5. Render | Browser displays page layout & images | 50-100 ms |
Mid Content Ad Advertisement
Interactive Developer Tools & Calculators
View All Tools โJSON Formatter
Format, validate and beautify JSON with syntax highlighting and error detection.
Base64 Encoder
Encode and decode Base64 strings and files instantly in your browser.
JWT Decoder
Decode and inspect JSON Web Tokens โ header, payload, claims, and expiry.
Regex Tester
Test and debug regular expressions with live match highlighting and flag toggles.
Editorial Disclaimer
The information in this article is provided for educational and informational purposes only. While we strive for accuracy, content may become outdated as technologies, regulations, and best practices evolve. Learntrix and Vyuhantrix make no warranties regarding the completeness, accuracy, or applicability of the information to your specific situation. Always verify critical information from primary and authoritative sources before implementation.
Last content review: August 2026 ยท Learntrix by Vyuhantrix
Copyright 2026 Vyuhantrix Technologies. All content on Learntrix is the intellectual property of Vyuhantrix. Reproduction, distribution, or republishing of this article โ in whole or in part โ without written permission from Vyuhantrix is strictly prohibited.
Footer Article Ad Advertisement
Related Articles
View all in Programming & Development โ
How Does a Solar Eclipse Work: Umbra, Penumbra & Geometry Explained Simply
Why does the Moon cover the Sun so perfectly? Learn the orbital geometry, umbra, penumbra, and total vs partial solar eclipses with simple 8th-grade analogies.

Black Holes, Event Horizons & Time Dilation Explained Simply
Why does time slow down near a black hole? Discover general relativity, event horizons, and gravitational time dilation explained with fun 8th-grade analogies.
