Answer:
Through the use of DHCP server.
Step-by-step explanation:
A DHCP Server is a network server that automatically provides and assigns IP addresses, default gateways and other network parameters to client devices.
Typically the wireless router includes a DHCP (Dynamic Host Configuration Protocol) server which assigns the IP addresses to your 5 client PCs.
When your computers' network interfaces (wireless adapters) try to connect to with the wireless router, the will router prescribe IP address,default gateway(the router's local IP address) and DNS addresses etc. to your computers through the use of DHCP.