How do routers get their external IP address

ipnetworkingrouter

How do routers get their external IP address? Is it assigned by a central service? Is it decided by the ISP? I have googled this problem, but have only found how to change my IP address, which is not what I am after.

Best Answer

Very much like how you have a local DHCP server running on your home router to serve IPv4 addresses on your LAN network (typically in the 192.168.1.x subnet), your ISP also has a DHCP server running somewhere that your router gets its WAN address from. The IP address range your ISP's DHCP server hands out are public IP addresses that it has purchased or been assigned.

Related Question