Computer Science
Grade 5
20 min
IP Addresses
IP Addresses
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define what an IP address is using a real-world analogy.
Identify the four parts of a standard IPv4 address.
Explain why each part of an IPv4 address must be a number between 0 and 255.
Differentiate between a valid and an invalid IP address.
Describe the role of a router in sending information to the correct IP address.
Explain how an IP address helps devices on the internet find each other.
How does a letter get to your house and not your friend's house? 📬 Computers need special addresses too!
In this lesson, you'll discover the secret address every device on the internet has, called an IP address. We'll learn how these addresses work, why they are so important for sending and receiving information like videos and game data, and how the...
2
Key Concepts & Vocabulary
TermDefinitionExample
IP AddressA unique address for a device on a network, like a house address for your computer. IP stands for Internet Protocol.192.168.1.10 or 8.8.8.8
NetworkA group of connected computers and devices that can share information.The Wi-Fi network in your house that connects your tablet, computer, and game console.
RouterA device that acts like a mail carrier for a network. It reads the IP address on data and sends it in the right direction.The blinking box in your house that gives you Wi-Fi.
PacketA small piece of data sent over a network. Big files are broken into many small packets to be sent.When you load a picture online, it arrives as many tiny packets that your computer puts back together.
IPv4The most common type of IP address. It uses four numbers separated by...
3
Core Syntax & Patterns
The IPv4 Address Structure
Four numbers separated by three dots. (Example: A.B.C.D)
This is the pattern for all standard IPv4 addresses. Each letter (A, B, C, D) represents a number.
The 0-255 Number Rule
Each number in an IPv4 address must be between 0 and 255.
Computers use 8 bits of binary to store each number, and the biggest number you can make with 8 bits is 255. If any number is 256 or higher, the address is invalid.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
A programmer writes a loop in their code: `FOR i FROM 1 TO 256 { connect_device("192.168.1." + i) }`. This code will try to connect to devices with IPs from 192.168.1.1 up to 192.168.1.256. Why will this program run into an error?
A.The IP address is missing a number.
B.The IP address 192.168.1.256 is invalid.
C.The loop is running backwards.
D.Computers cannot connect using a loop.
Challenging
Your computer is on your school's network and has the IP address 10.1.88.45. You use a web browser to visit a popular video website. Which of the following is most likely to be the IP address of the video website's server?
A.10.1.88.1
B.192.168.0.100
C.208.65.153.238
D.127.0.0.1
Challenging
A small company needs to connect 350 computers to its network. The network manager decides to use IP addresses starting with 192.168.1.x. Why is this a problem?
A.The number 192 is too high for a company.
B.This type of IP address is only for homes, not companies.
C.The company needs a public IP for every computer.
D.The range 192.168.1.x can only support about 254 computers.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free