Skip to content

Internet Fundamentals Cheat Sheet: Internet कैसे काम करता है?

Updated 5 Oct 2026 5 min scan

Internet Fundamentals क्या है?#

Internet Fundamentals का मतलब है Internet के basic concepts और उसके काम करने के तरीके को समझना।

अगर आप web developer, software developer या IT professional बनना चाहते हैं, तो सिर्फ HTML, CSS और JavaScript जानना काफी नहीं है।

आपको यह भी समझना चाहिए कि:

  • Browser website तक कैसे पहुँचता है?
  • Domain name क्या होता है?
  • IP Address क्या है?
  • DNS क्या करता है?
  • HTTP और HTTPS क्या हैं?
  • Client और Server क्या होते हैं?
  • Data Internet पर कैसे travel करता है?
  • Port क्या होता है?
  • Request और Response क्या होते हैं?

Simple words में:

Internet Fundamentals आपको यह समझने में मदद करता है कि जब आप browser में कोई website खोलते हैं, तो background में क्या होता है।


Internet क्या है?#

Internet दुनिया भर में connected computers और networks का एक विशाल network है।

Simple example:

जब आप browser में:

Code
https://example.com

open करते हैं, तो आपका device Internet के through दूसरे computer/server से communicate करता है।

Basic flow:

Code
Your Device
     ↓
Internet
     ↓
Remote Server
     ↓
Website / Data

Internet की मदद से हम:

  • Websites access करते हैं
  • Emails भेजते हैं
  • Files transfer करते हैं
  • Videos stream करते हैं
  • Online applications use करते हैं
  • APIs से data लेते हैं
  • Cloud services use करते हैं

Internet और Web में क्या Difference है?#

Internet और World Wide Web (Web) same चीजें नहीं हैं।

Internet

Internet interconnected networks का infrastructure है।

Web

Web Internet के ऊपर चलने वाली एक service है जिसमें websites और web applications शामिल हैं।

Simple analogy:

Code
Internet = Roads का पूरा network
Web = उन roads पर चलने वाली एक service

Internet पर web के अलावा email, file transfer और अन्य network services भी चल सकती हैं।


Internet कैसे काम करता है?#

जब आप browser में website खोलते हैं, तो simplified flow कुछ ऐसा होता है:

Code
Browser
   ↓
Domain Name
   ↓
DNS
   ↓
IP Address
   ↓
Server
   ↓
HTTP/HTTPS Request
   ↓
Server Response
   ↓
Browser
   ↓
Web Page

इसे step-by-step समझते हैं।


Step 1: आप URL Enter करते हैं#

मान लीजिए आपने browser में लिखा:

Code
https://example.com

यह एक URL (Uniform Resource Locator) है।

URL browser को बताता है कि आपको किस resource तक पहुँचना है और किस protocol का use करना है।


Step 2: Browser Domain को Identify करता है#

URL में:

Code
example.com

domain name है।

Humans के लिए domain name याद रखना आसान है।

लेकिन network communication में server को identify करने के लिए IP Address की जरूरत होती है।

यहीं DNS काम आता है।


Step 3: DNS Domain को IP में Resolve करता है#

DNS का पूरा नाम है:

Domain Name System

DNS domain name को corresponding IP address से resolve करने में मदद करता है।

Example:

Code
example.com
      ↓
DNS
      ↓
IP Address

इसका फायदा यह है कि हमें numeric IP address याद रखने की जरूरत नहीं होती।


Step 4: Browser Server से Connect करता है#

IP address मिलने के बाद browser उस destination server तक connection establish करने की कोशिश करता है।

इसके बाद appropriate network protocols और port के through communication होता है।

Common web ports:

Code
HTTP  → 80
HTTPS → 443

Step 5: Browser HTTP/HTTPS Request भेजता है#

Browser server को request भेज सकता है।

Example:

Code
GET / HTTP/1.1
Host: example.com

Request में यह information हो सकती है:

  • Method
  • URL/path
  • Headers
  • Cookies
  • Body

Request का exact structure HTTP version और request type पर depend करता है।


Step 6: Server Response भेजता है#

Server request process करने के बाद response भेजता है।

Example:

Code
HTTP/1.1 200 OK
Content-Type: text/html

Response में हो सकता है:

  • Status code
  • Headers
  • Body
  • HTML
  • JSON
  • Images
  • Other resources

Step 7: Browser Page Render करता है#

अगर response में HTML है, तो browser उसे process करता है।

फिर website के लिए:

Code
HTML
CSS
JavaScript
Images
Fonts
APIs

जैसे resources load हो सकते हैं।

अंत में browser user को webpage दिखाता है।


Client क्या है?#

Client वह device या software होता है जो किसी service/resource की request करता है।

Web में आपका browser एक client की तरह काम करता है।

Examples:

Code
Chrome
Firefox
Safari
Edge
Mobile App

Simple:

Code
Client → Request

Server क्या है?#

Server वह system है जो requests receive करके services या resources provide करता है।

Example:

Code
Browser
   ↓ Request
Server
   ↓ Response
Browser

Server पर हो सकता है:

  • Website
  • API
  • Database connection
  • Images
  • Files
  • Application logic

Client-Server Model#

Internet applications को समझने के लिए Client-Server model बहुत important है।

Code
       Request
Client -----------> Server
<-----------
Response

Example:

जब आप shopping website खोलते हैं:

Code
Browser
   ↓
Request
   ↓
Web Server
   ↓
Application
   ↓
Database
   ↓
Response
   ↓
Browser

IP Address क्या है?#

IP Address network पर किसी device या interface को identify/address करने के लिए इस्तेमाल होने वाला address है।

IPv4 का example:

Code
192.168.1.10

IPv4 address में चार numeric parts होते हैं।

Example:

Code
192 . 168 . 1 . 10

IPv6 का example:

Code
2001:db8::1

IPv6 बहुत बड़े address space के लिए design किया गया है।


Public और Private IP Address#

Public IP

Internet पर externally reachable addressing के लिए use किया जा सकता है।

Example:

Code
203.0.113.10

Private IP

Local/private network में devices के लिए use किया जाता है।

Common private IPv4 ranges में:

Code
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

शामिल हैं।

Home Wi-Fi में आपका laptop और phone private IP addresses use कर सकते हैं।


IPv4 और IPv6#

IPv4IPv6
32-bit address128-bit address
Example: 192.168.1.10Example: 2001:db8::1
Limited address spaceबहुत बड़ा address space
अभी भी widely usedModern networks में increasingly used

MAC Address क्या है?#

MAC Address network interface से associated hardware/link-layer address होता है।

Example:

Code
00:1A:2B:3C:4D:5E

IP और MAC अलग concepts हैं।

Simple difference:

Code
IP Address
→ Network-level addressing

MAC Address
→ Local network/link-layer addressing

Domain Name क्या है?#

Domain name website का human-readable name होता है।

Example:

Code
example.com

Instead of remembering:

Code
numeric IP address

हम:

Code
example.com

जैसा domain use करते हैं।


Domain के Parts#

Example:

Code
www.example.com

यहाँ:

Code
www      → subdomain/host name
example  → domain name
.com     → top-level domain (TLD)

एक और example:

Code
blog.example.com

यहाँ:

Code
blog.example.com

एक hostname/domain structure का example है।


URL क्या है?#

URL का पूरा नाम है:

Uniform Resource Locator

Example:

Code
https://example.com/products?id=10

इसके major parts:

Code
https://
example.com
/products
?id=10

Scheme

Code
https://

Protocol/scheme बताता है।

Host

Code
example.com

Destination host/domain है।

Path

Code
/products

Requested resource/path को identify करता है।

Query String

Code
?id=10

Additional parameters provide कर सकती है।


URL और URI#

आपको development में URI term भी मिलेगी।

URI resource को identify करने के लिए broader concept है।

URL URI का एक प्रकार है जो resource का location/access mechanism भी बताता है।

Practical web development में URL term बहुत commonly use होती है।


DNS क्या है?#

DNS (Domain Name System) domain names को IP addresses से resolve करने में मदद करता है।

Example:

Code
google.com
     ↓
   DNS
     ↓
IP Address

DNS को याद रखने का simple तरीका:

DNS = Internet का phonebook जैसा concept

लेकिन यह analogy सिर्फ basic understanding के लिए है; actual DNS system इससे काफी अधिक complex है।


DNS Resolution का Basic Flow#

जब browser को domain का IP चाहिए:

Code
Browser
   ↓
DNS Resolver
   ↓
DNS Servers
   ↓
IP Address
   ↓
Browser

DNS caching की वजह से हर request में पूरा lookup process repeat होना जरूरी नहीं है।


DNS के Common Record Types#

A Record

Domain को IPv4 address से map करता है।

Code
example.com → IPv4

AAAA Record

Domain को IPv6 address से map करता है।

Code
example.com → IPv6

CNAME

एक hostname को दूसरे hostname की ओर point करने के लिए use होता है।

Example:

Code
www.example.com
        ↓
example.com

MX Record

Email delivery के लिए mail servers specify करता है।

TXT Record

Text-based DNS information के लिए use होता है, जैसे domain verification और कुछ email/security configurations।


HTTP क्या है?#

HTTP का पूरा नाम है:

Hypertext Transfer Protocol

यह web पर client और server के बीच communication के लिए इस्तेमाल होने वाला application-layer protocol है।

Basic flow:

Code
Client
  ↓
HTTP Request
  ↓
Server
  ↓
HTTP Response
  ↓
Client

HTTPS क्या है?#

HTTPS = HTTP Secure

HTTPS में HTTP communication को TLS के through secure किया जाता है।

इससे communication में:

  • Encryption
  • Server authentication
  • Data integrity

जैसी security properties मिलती हैं।

Website में अक्सर:

Code
https://

देखने को मिलता है।


HTTP और HTTPS में Difference#

HTTPHTTPS
HTTP protocolHTTP over TLS
Communication secure नहीं होती by defaultTLS security प्रदान करता है
Common port: 80Common port: 443
Sensitive data के लिए suitable नहींSecure web communication के लिए designed

Important:

HTTPS का मतलब यह नहीं कि website automatically trustworthy है। यह connection को secure करने में मदद करता है, लेकिन website की content/trustworthiness अलग concern है।


HTTP Methods#

HTTP में different methods अलग types के operations express करते हैं।

GET

Resource retrieve करने के लिए:

Code
GET /products

POST

Data submit/create जैसे operations के लिए:

Code
POST /users

PUT

Resource को replace/update करने के लिए commonly use होता है।

Code
PUT /users/10

PATCH

Resource के partial update के लिए:

Code
PATCH /users/10

DELETE

Resource delete करने के लिए:

Code
DELETE /users/10

HTTP Status Codes#

Server response में status code आता है।

1xx — Informational

Request processing से related informational responses।

2xx — Success

Example:

Code
200 OK

मतलब request successfully process हुई।

Code
201 Created

मतलब resource create हुआ।

3xx — Redirection

Example:

Code
301
302
304

4xx — Client-side Error

Example:

Code
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found

5xx — Server-side Error

Example:

Code
500 Internal Server Error
502 Bad Gateway
503 Service Unavailable

Quick memory:

Code
2xx → Success
3xx → Redirect
4xx → Client-side request problem
5xx → Server-side problem

Port क्या है?#

एक device पर multiple network services चल सकती हैं।

Port number network communication को specific service/application endpoint तक direct करने में मदद करता है।

Common examples:

Code
HTTP   → 80
HTTPS  → 443
SSH    → 22
DNS    → 53

Example:

Code
IP Address + Port
192.168.1.10:8080

यह किसी network service endpoint को represent कर सकता है।


Localhost क्या है?#

localhost current computer को refer करता है।

Common IPv4 loopback:

Code
127.0.0.1

Example:

Code
http://localhost:3000

यह usually आपके अपने computer पर चल रहे application को access करने के लिए use होता है।


localhost और 127.0.0.1#

Code
localhost
   ↓
127.0.0.1

यह common local loopback setup है।

लेकिन exact hostname/address behavior environment configuration पर depend कर सकता है।


localhost:3000 में 3000 क्या है?#

Example:

Code
http://localhost:3000

यहाँ:

Code
localhost → Current machine
3000      → Port

Development frameworks में 3000, 5173, 8000 जैसे ports commonly देखे जा सकते हैं।

Example:

Code
React/Vite App
http://localhost:5173

TCP क्या है?#

TCP (Transmission Control Protocol) transport layer protocol है जो reliable, ordered data delivery provide करने के लिए designed है।

Simple idea:

Code
Application
    ↓
TCP
    ↓
IP
    ↓
Network

TCP में:

  • Connection-oriented communication
  • Reliable delivery
  • Ordered data
  • Retransmission mechanisms

जैसी properties होती हैं।


UDP क्या है?#

UDP (User Datagram Protocol) connectionless transport protocol है।

यह TCP की तरह delivery reliability और ordering guarantee नहीं देता।

Simple comparison:

TCPUDP
Connection-orientedConnectionless
Reliable delivery mechanismsNo delivery guarantee
Ordered dataOrdering guarantee नहीं
More protocol overheadLower overhead

Different applications अपनी requirements के अनुसार TCP या UDP जैसे transport protocols use कर सकती हैं।


TCP/IP क्या है?#

TCP/IP Internet communication में use होने वाले protocols का family/suite है।

Simplified model:

Code
Application
    ↓
Transport
    ↓
Internet
    ↓
Link

Examples:

Code
Application → HTTP, DNS
Transport  → TCP, UDP
Internet   → IP
Link       → Ethernet, Wi-Fi

Real networking stack इससे अधिक detailed हो सकता है, लेकिन learning के लिए यह model useful है।


Packet क्या है?#

Internet पर data generally छोटे network units में transmit होता है जिन्हें broadly packets कहा जाता है।

Simple example:

Code
Large Data
   ↓
Packets
 ↓  ↓  ↓  ↓
Network
 ↓  ↓  ↓  ↓
Destination
   ↓
Reassembled Data

हर packet के साथ network-related information होती है ताकि वह destination तक पहुँच सके।


Router क्या है?#

Router अलग networks के बीच packets को forward करने वाला network device है।

Home network में:

Code
Laptop
   ↓
Wi-Fi Router
   ↓
Internet

Router traffic को appropriate network path की ओर forward करने में मदद करता है।


ISP क्या है?#

ISP = Internet Service Provider

यह वह organization/company होती है जो customers को Internet connectivity provide करती है।

Example flow:

Code
Your Device
     ↓
Home Router
     ↓
ISP
     ↓
Internet
     ↓
Website Server

Bandwidth और Speed#

Bandwidth

Network connection की data carrying capacity को describe करने के लिए bandwidth term use होती है।

Example:

Code
100 Mbps

Latency

Data को destination तक जाने और response आने में लगने वाले delay को latency के रूप में देखा जा सकता है।

Simple:

Code
Bandwidth → कितना data
Latency   → कितना delay

High bandwidth का मतलब automatically low latency नहीं होता।


Upload और Download#

Download

Internet से आपके device की तरफ data आना:

Code
Internet
   ↓
Your Device

Example:

  • Video देखना
  • File download करना

Upload

आपके device से Internet की तरफ data जाना:

Code
Your Device
   ↓
Internet

Example:

  • Photo upload करना
  • Video upload करना
  • File server पर भेजना

API क्या है?#

API (Application Programming Interface) अलग software components को communicate करने का defined interface provide करता है।

Web applications में API अक्सर HTTP requests के through data exchange करती हैं।

Example:

Code
Frontend
   ↓
GET /api/products
   ↓
Backend
   ↓
Database
   ↓
JSON Response
   ↓
Frontend

Example response:

Code
{
  "id": 10,
  "name": "Laptop",
  "price": 50000
}

JSON क्या है?#

JSON (JavaScript Object Notation) structured data exchange का commonly used format है।

Example:

Code
{
  "name": "Rahul",
  "age": 25,
  "city": "Chandigarh"
}

Web APIs में JSON बहुत commonly दिखाई देता है।


Browser क्या करता है?#

जब आप website open करते हैं, browser सिर्फ HTML display नहीं करता।

Browser:

  • DNS/network communication में participate करता है
  • HTTP/HTTPS requests करता है
  • HTML parse करता है
  • CSS apply करता है
  • JavaScript execute करता है
  • Images/fonts/resources load करता है
  • Page render करता है

Basic flow:

Code
URL
 ↓
DNS
 ↓
Connection
 ↓
HTTP/HTTPS
 ↓
Response
 ↓
HTML/CSS/JS
 ↓
Render

Web Server और Application Server#

Simple architecture:

Code
Browser
   ↓
Web Server
   ↓
Application
   ↓
Database

Example:

Code
Browser
   ↓
Nginx
   ↓
PHP / Node.js / Symfony / Laravel
   ↓
MySQL

Real architecture project के हिसाब से काफी different हो सकती है।


Static और Dynamic Website#

Static Website

Content mostly predefined files से serve होता है।

Example:

Code
HTML
CSS
JavaScript
Images

Dynamic Website

Content request/user/data के according dynamically generate हो सकता है।

Example:

Code
Browser
   ↓
Backend
   ↓
Database
   ↓
Dynamic Response

WordPress, e-commerce applications और many modern web applications dynamic behavior use करती हैं।


Browser DevTools से Internet Concepts कैसे देखें?#

Browser में DevTools खोलें:

Code
Right Click → Inspect

फिर:

Code
Network

tab खोलें।

Website reload करें।

आप देख सकते हैं:

  • Requests
  • Response status
  • Request method
  • URL
  • Headers
  • Response
  • Timing
  • Resources

Example:

Code
GET /api/products
Status: 200
Type: fetch

यह Internet Fundamentals को practically समझने का बहुत अच्छा तरीका है।


Practical Example: Website Open होने पर क्या होता है?#

मान लीजिए आप खोलते हैं:

Code
https://theeasymaster.com/

Simplified process:

Code
1. Browser URL पढ़ता है
          ↓
2. Domain identify करता है
          ↓
3. DNS resolution
          ↓
4. Server का network address मिलता है
          ↓
5. HTTPS connection establish होता है
          ↓
6. HTTP request भेजी जाती है
          ↓
7. Server response देता है
          ↓
8. Browser HTML receive करता है
          ↓
9. CSS / JS / Images load होते हैं
          ↓
10. Browser page render करता है

Real-world network stack इससे ज्यादा complex है, लेकिन fundamentals समझने के लिए यह mental model useful है।


Common Internet Problems#

1. Website नहीं खुल रही

Possible reasons:

Code
DNS issue
Network issue
Server down
Wrong URL
Firewall
TLS/HTTPS problem

2. 404 Not Found

इसका मतलब server को requested resource नहीं मिला।

Example:

Code
https://example.com/abc

अगर /abc resource available नहीं है तो 404 मिल सकता है।


3. 500 Internal Server Error

Server-side application में error होने पर 500 response आ सकता है।

यह generally client के browser की basic problem नहीं होती; actual cause server/application logs में देखना पड़ सकता है।


4. DNS Problem

अगर domain resolve नहीं हो रहा:

Code
Domain
  ↓
DNS
  X
IP नहीं मिला

तो website तक पहुँचना fail हो सकता है।


5. Connection Refused

Example:

Code
localhost:3000

अगर उस port पर application listening नहीं कर रही, तो connection refused जैसी error आ सकती है।


Internet Security Basics#

Internet use करते समय कुछ basic security concepts समझना जरूरी है।

HTTPS Use करें

Sensitive communication के लिए HTTPS important है।

Passwords Secure रखें

Passwords को plain text में store या share नहीं करना चाहिए।

API Keys Public न करें

Code repository में:

Code
API_KEY=...

जैसी sensitive values accidentally commit न करें।

Phishing से सावधान रहें

हर website सिर्फ इसलिए trustworthy नहीं होती क्योंकि URL में https:// है।

Domain carefully check करें।


Internet Fundamentals Quick Reference#

ConceptSimple Meaning
InternetInterconnected networks का global system
WebInternet पर चलने वाली web service
ClientRequest करने वाला software/device
ServerRequest process करके service/resource देने वाला system
IP AddressNetwork addressing
DomainHuman-readable website name
DNSDomain को IP से resolve करने की system
URLResource locator
HTTPWeb communication protocol
HTTPSHTTP secured with TLS
PortNetwork service endpoint पहचानने में मदद करता है
TCPReliable transport protocol
UDPConnectionless transport protocol
RouterNetworks के बीच packets forward करता है
ISPInternet connectivity provider
APISoftware communication interface
JSONStructured data format
localhostCurrent machine का local hostname

Important Ports Quick Reference#

ServiceCommon Port
HTTP80
HTTPS443
SSH22
DNS53
Development appsProject-dependent

याद रखें:

Code
HTTP  → 80
HTTPS → 443
SSH   → 22
DNS   → 53

Ports protocol/service के commonly used defaults हैं; applications अलग ports पर भी configure की जा सकती हैं।


Internet को एक Simple Mental Model से समझें#

पूरे topic को इस तरह याद रखें:

Code
Domain
  ↓
DNS
  ↓
IP Address
  ↓
Server
  ↓
Port
  ↓
HTTP / HTTPS
  ↓
Request
  ↓
Response
  ↓
Browser
  ↓
Web Page

और network layers का basic idea:

Code
Application
HTTP / DNS
    ↓
Transport
TCP / UDP
    ↓
Internet
IP
    ↓
Link
Wi-Fi / Ethernet

Knowledge Check#

Q1. Internet क्या है?

A. केवल websites का collection
B. Interconnected networks का global system
C. केवल browser
D. केवल Wi-Fi

Answer: B

Q2. DNS का main purpose क्या है?

A. Website design करना
B. Domain name को IP address से resolve करने में मदद करना
C. Password generate करना
D. Database create करना

Answer: B

Q3. HTTPS में security किस technology के through provide होती है?

A. HTML
B. CSS
C. TLS
D. DNS

Answer: C

Q4. HTTP का commonly used port कौन सा है?

A. 22
B. 53
C. 80
D. 443

Answer: C

Q5. HTTPS का commonly used port कौन सा है?

A. 21
B. 22
C. 80
D. 443

Answer: D

Q6. localhost:3000 में 3000 क्या represent करता है?

A. IP address
B. Domain
C. Port
D. Protocol

Answer: C

Q7. Browser और server के बीच basic communication किस model को follow करता है?

A. Client-Server
B. Peer-only
C. File-System
D. Database-only

Answer: A


Practical Exercises#

Exercise 1 — अपना Public IP देखें

अपने browser में search करें:

Code
What is my IP

अपने public IP concept को समझें।


Exercise 2 — DNS को Practice करें

Terminal में:

Code
nslookup example.com

या:

Code
dig example.com

अगर dig आपके system पर available है।

Output में domain के DNS-related information को observe करें।


Exercise 3 — HTTP Request देखें

Browser में किसी website को खोलें।

फिर:

Code
Inspect → Network

करें।

Page reload करें और देखें:

Code
Request URL
Request Method
Status Code
Response
Headers

Exercise 4 — Localhost पर App चलाएं

किसी development project को run करके देखें:

Code
http://localhost:3000

फिर identify करें:

Code
localhost → Host
3000      → Port
http      → Scheme

अगर आपका framework दूसरा port use करता है, तो वही port देखें।


Exercise 5 — URL को Break करें

इस URL को parts में divide करें:

Code
https://example.com/products?id=10

Identify करें:

Code
Scheme
Host
Path
Query String

Summary#

Internet Fundamentals को आसान तरीके से ऐसे याद रखें:

Browser किसी website तक पहुँचने के लिए network के कई components और protocols का use करता है।

Basic journey:

Code
URL
 ↓
DNS
 ↓
IP
 ↓
Server
 ↓
HTTP/HTTPS
 ↓
Request
 ↓
Response
 ↓
Browser

आपको इन concepts को अच्छी तरह समझना चाहिए:

Code
Internet
Web
Client
Server
IP Address
Domain
DNS
URL
HTTP
HTTPS
TCP
UDP
Ports
Router
ISP
API
JSON
localhost

इन fundamentals की अच्छी understanding आगे DNS, HTTP/HTTPS, Browser DevTools और Web Development जैसे topics को समझना आसान बनाती है।