背景 链接到标题 通常我们使用联网的电子设备,都会配置一个 IP 地址用于通信,一般采用 DHCP 配置,DHCP 有 lease 时间,如果超过 lease 时间又没有续约的话,产生的 IP 地址有可能发生改变,那么如何 自动识别我们的设备呢? ZeroConf 是一个好的选择。
ZeroConf 链接到标题 以下介绍摘录自维基百科:
Zero-configuration networking (zeroconf) is a set of technologies that automatically creates a usable computer network based on the Internet Protocol Suite (TCP/IP) when computers or network peripherals are interconnected. It does not require manual operator intervention or special configuration servers. Without zeroconf, a network administrator must set up network services, such as Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS), or configure each computer’s network settings manually.