Networking Basics for Security

Beginner ~7 min read
Every website you visit and every message you send travels across a network — and you don't need a computer-science degree to follow it. Just enough networking to know where the risks hide (and why that little padlock matters) goes a long way.

IP Addresses, Ports & Protocols

Every device on a network has an IP address — like a home address for your computer. Public IPs are visible on the internet; Private IPs (like 192.168.x.x) are used inside your home network.

Ports are like doors on a building — specific services use specific ports (HTTP uses port 80, HTTPS uses 443, SSH uses 22).

Protocols are the agreed-upon rules for communication (TCP/IP, HTTP, DNS, etc.).

What is a Firewall?

A firewall monitors incoming and outgoing network traffic and decides what to allow or block based on predefined rules. Think of it as a security guard at the door of a building — checking every visitor against an approved list.

Firewalls can be hardware (a physical device) or software (built into your OS or router).

What is a VPN?

A Virtual Private Network (VPN) creates an encrypted tunnel between your device and a VPN server. This hides your real IP address and encrypts your traffic, protecting you on public Wi-Fi and adding privacy from your ISP.

A VPN protects your traffic in transit — it doesn't make you anonymous or protect against malware.

HTTP vs HTTPS

HTTP (HyperText Transfer Protocol) sends data in plain text — anyone on the network can read it.

HTTPS adds TLS/SSL encryption. The padlock in your browser means your connection is encrypted and the site's identity is verified.

Network Flow Diagram

Here's how your data travels from your device to the internet:

🎯 Key Takeaway

Data moves in packets across networks using addresses (IP) and rules (protocols). HTTPS encrypts that trip so eavesdroppers can't read it — which is why 'is there a padlock?' is a habit worth keeping.

// Knowledge Check