There are 2 ways that any Network device will get its IP Address. One is manual
entry by users / administrators while the other is automatic called DHCP. A DHCP
server in the network (locally) or at your ISP (Public) does this job. Normally,
most if not all computers and network devices are setup to look for a DHCP server
and obtain IP Address.