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 ...
Get Arduino: A Quick-Start Guide, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.