About this interactive
On a local network, frames are delivered by MAC address. That works because everyone on the LAN hears the frame. But MAC addresses are burned in by whoever made the network card, so they are scattered at random: the next address in a maker's sequence could be on the other side of the world. To find one MAC address anywhere on the planet you would need a database of the location of every device, which is unmanageable (and a security risk). MAC addresses only work locally.
IP addresses solve this by being hierarchical. IANA hands large blocks of addresses to organizations responsible for regions of the world; they hand smaller blocks to internet service providers, who hand them to businesses, who give them to their devices. A packet can be sent toward the right region, then the right provider, then the right network, each one narrowing it down.
An IPv4 address is 32 bits. People read it as four decimal numbers, one for each 8-bit octet, separated by dots: 192.168.40.41. Each octet runs from 0 to 255.
A device gets its IP address when it connects to a network, usually from DHCP. Take a laptop to another network and it gets a different address there; its burned-in MAC address stays the same. (Some devices show a different, software-set MAC on Wi-Fi for privacy, but the burned-in address itself does not change.)
On Windows, ipconfig shows the IPv4 address, subnet mask and default gateway; ipconfig /all adds the Physical Address, which is the MAC address.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →