A router assigns IP addresses
A router on a local network gives each device that joins its own IP address automatically, so nobody sets it up by hand. Every device gets a different address.
Understanding A router assigns IP addresses in IGCSE Computer Science Paper 1
What it does: The router assigns the address automatically, so the device does not type in its own address. The router hands out IP addresses to the devices that join the network. Every device on the network needs its own unique IP address, or data would not reach the right device. Automatic assignment saves time and avoids mistakes such as two devices being given the same address.
Common mistakes: Assignment in this pseudocode uses the arrow <-, not =. The line should be laptop.ip <- ip, which stores the address the router gave the laptop. An IF statement needs THEN at the end of its first line. It should be IF newDevice.joined = TRUE THEN, so the router assigns an address when a new device joins.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 342–354) and word search (Modules 325–354).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
router assigns IPFill in the Blanks
Spot the Error
Student with a class code? Join your class →