s How does a computer gets and IP address? :: Amazon CloudOps Networking Workshop

How does a computer gets and IP address?

Static vs Dynamic

How does your computer get its IP address? An IP address can be either dynamic or static.

Static address is one that you configure yourself by editing your computer’s network settings. This type of address is rare, and it can create network issues if you use it without a good understanding of TCP/IP.

Dynamic addresses are the most common. They’re assigned by the Dynamic Host Configuration Protocol (DHCP), a service running on the network. DHCP typically runs on network hardware such as routers or dedicated DHCP servers. Dynamic IP addresses are issued using a leasing system, meaning that the IP address is only active for a limited time. If the lease expires, the computer will automatically request a new lease.

Please re-visit the DHCP section if you need a refresh on how DHCP works.

If you have a Windows machine, you also might want to familiarize yourself on how you can configure static or dynamic (DHCP) IP configuration.

Windows Static IP Configuration:

Windows Dynamic IP (DHCP) Configuration: