Blog / Tutorials

Networking Basics Every Teen Developer Should Understand

, 8 min read

Networking is the invisible infrastructure that everything you build depends on. Every API call, every database query, every page load is a network operation. Yet most teen developers have no idea how any of it works. You do not need to become a network engineer, but understanding the basics makes you significantly more capable.

What is a Network

A network is two or more devices connected together that can communicate. Your home WiFi is a network. Your school computer lab is a network. The internet is a network of networks — millions of smaller networks connected together.

IP Addresses and Subnets

Every device on a network has an IP address. On your home network, devices typically have addresses like 192.168.1.x, where x is different for each device. Your router assigns these addresses using DHCP (Dynamic Host Configuration Protocol).

A subnet defines which IP addresses belong to the same local network. The subnet mask 255.255.255.0 means the first three numbers must match for devices to be on the same network. 192.168.1.5 and 192.168.1.200 are on the same subnet. 192.168.1.5 and 192.168.2.5 are not.

Ports

An IP address identifies a device, but a device runs many services. Ports distinguish between them. HTTP uses port 80. HTTPS uses port 443. SSH uses port 22. When you run a development server on localhost:3000, you are running it on port 3000 of your local machine.

Ports range from 0 to 65535. Ports 0-1023 are reserved for well-known services. When you build a web application, you choose a port for your server to listen on.

TCP vs UDP

TCP (Transmission Control Protocol) guarantees delivery. Every packet is acknowledged, and lost packets are retransmitted. Web browsing, email, and file transfers use TCP because you need every piece of data to arrive correctly.

UDP (User Datagram Protocol) does not guarantee delivery. Packets might arrive out of order or not at all. Video calls, online gaming, and DNS lookups use UDP because speed matters more than perfect reliability — a dropped frame in a video call is better than a delayed one.

HTTP Methods and Status Codes

As a web developer, you work with HTTP constantly. The main methods: GET retrieves data. POST creates data. PUT updates data (replaces entirely). PATCH updates data (partial modification). DELETE removes data.

Status codes tell you what happened: 200 means success. 201 means created. 301 means permanently redirected. 400 means bad request. 401 means unauthorized. 403 means forbidden. 404 means not found. 500 means server error.

Memorize these. You will see them every day.

DNS Resolution

When you type a domain name, DNS resolves it to an IP address. The process: your browser checks its cache, then your OS cache, then your router cache, then your ISP DNS server, and if none of them know, the request goes up the chain to root DNS servers, then TLD servers, then authoritative name servers.

Understanding DNS helps you debug "site not loading" issues and configure custom domains for your projects.

Firewalls

A firewall controls which network traffic is allowed in and out. Your router has a built-in firewall that blocks incoming connections by default — this is why you cannot access your home computer from outside without port forwarding.

When you deploy a server to the cloud, you configure firewall rules (called security groups on AWS) to control which ports accept connections. Misconfiguring these is a common source of "my app is deployed but I cannot access it" problems.

Practical Exercises

Open your terminal and run ipconfig (Windows) or ifconfig (Mac/Linux) to see your network configuration. Run ping google.com to test connectivity and measure latency. Run traceroute google.com to see every hop your data takes between you and Google. Run nslookup arnikohackclub.com to see DNS resolution in action.

Install Wireshark and capture network traffic on your machine. Watch HTTP requests fly by as you browse websites. This is the best way to develop intuition for how network communication actually works.

Why This Matters

When your API call times out, is it a server problem or a network problem? When your website is slow in Nepal but fast in the US, is it routing or server location? When your WebSocket connection drops, is it the firewall or your code? Networking knowledge answers these questions. Without it, you are debugging blind.