Using DHCP and DNS
In the preceding section, you learned how to access IP services the “hard” way. That is, you had to know your own IP address and the services’s IP address, too. For your home projects, this is convenient and efficient.
As soon as you create projects that have to run in unknown environments, you have to use a more flexible approach. If you’re going to build an actual product based on a networking Arduino, you certainly don’t want your customers to enter an unused IP address and upload a new sketch before they can use it.
In such cases you need a more flexible solution. In this section you’ll determine service addresses using the Domain Name System (DNS), and you’ll obtain the Arduino’s IP address using the Dynamic Host Configuration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access