Networking Basics
IP addresses, subnets, ports, and DNS: the vocabulary of every network.
Before you can scan, attack, or defend a network, you need to know how machines find and talk to each other.
1
Addresses and subnets
An IPv4 address is 32 bits, written as four numbers from 0 to 255:
192.168.1.10.A subnet is written with a prefix length:
192.168.1.0/24means the first 24 bits are the network, leaving 8 bits (256 addresses) for hosts. Two are reserved (network and broadcast), so a /24 has 254 usable host addresses.These ranges are private (not routed on the internet):
10.0.0.0/8172.16.0.0/12192.168.0.0/16
2
Ports and DNS
An IP address finds the machine; a port (0โ65535) finds the program on it. Common ones:
Port Service 22 SSH 53 DNS 80 HTTP 443 HTTPS 3306 MySQL DNS turns names like
constructor.universityinto IP addresses. Trynslookup example.comordig example.com.
โ Report a problem with this room
Log in to report a problem.