Share
๐Ÿ’ฌ WhatsApp๐• Post
๐Ÿ’ป Programming & DevelopmentBeginnerโฑ 8 min read

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.

How the Internet Works: What Happens When You Type a URL in Your Browser
๐Ÿ’ปProgramming & Development
LEARNTRIX VISUAL
100% Free Knowledgeโ€ขโฑ 8 min deep read
โœฆ Shareable Infographic Guide
๐Ÿ“… Published: 1 August 2026|VVyuhantrix Editorial Team
โœ“ ELIF8 Verifiedยฉ Learntrix

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.com is 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!"     โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  1. Browser Cache Check: First, your browser checks if it remembered the IP address from a recent visit.
  2. ISP DNS Resolver: If not cached, it queries your Internet Service Provider (Jio, Airtel, AT&T).
  3. 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:

  1. DOM Construction: The browser parses the HTML code into a document tree.
  2. CSS Styling: It downloads CSS files to calculate colors, layouts, and fonts.
  3. JavaScript Execution: It runs JS code for interactive buttons, animations, and calculators.

6. Summary: The 5-Step Internet Journey

StepActionTime Taken
1. RequestYou type URL and press Enter0 ms
2. DNS LookupBrowser converts domain to IP Address10-30 ms
3. HandshakeTCP & TLS SSL security handshake20-50 ms
4. HTTP GETBrowser requests HTML file20-40 ms
5. RenderBrowser displays page layout & images50-100 ms

Mid Content Ad Advertisement

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.

Tags:#how the internet works#dns explained#http request simple#web development 101#ip address elif8#tech basics

Footer Article Ad Advertisement

Black Holes, Event Horizons & Time Dilation Explained Simply
programming development
Beginnerโ€ขโฑ 7 min read

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.

๐Ÿ“… Aug 1, 2026Read Guide