这是一个简单的软件,在输入主机名后返回 IP 地址。
它仅在 WiFi 下工作。
此应用程序是作为开源开发的。
https://github.com/Network-Revolution/DotLocalFinder
如果您找到 debian 或 ubuntu 或 centos 或 Red-Hat PC,这些 PC 需要安装 mDNS。
请输入以下命令。
apt 安装 avahi-daemon libnss-mdns
dnf 安装 avahi avahi-tools nss-mdns
yum 安装 avahi avahi-tools nss-mdns
Windows10 和 macOS 一开始就安装了 mDNS,所以你不用任何操作就可以找到它。
如果您甚至安装了 mDNS,您还可以找到 SBC,例如 ESP32 或 micro:bit。
以下示例展示了如何使用 Arduino 构建主机。
https://github.com/Vasil-Pahomov/Liana
https://tttapa.github.io/ESP8266/Chap08%20-%20mDNS.html
你不仅可以做 Arduino,还可以做 Golang
https://github.com/hashicorp/mdns
还有 Python
https://pypi.org/project/mdns-publisher/
当然,Golang 和 Python 都是在 ESP32 上运行的。
https://tinygo.org/faq/what-about-esp8266-esp32/
https://docs.micropython.org/en/latest/esp32/tutorial/intro.html
Python 在 micro:bit 上运行。
https://microbit-micropython.readthedocs.io/en/latest/
当然,你也可以找到安装了 Raspbian 的 RaspberryPi。
你应该在这个应用程序中搜索“raspberrypi”!