這是一個簡單的軟件,在輸入主機名後返回 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,您還可以找到諸如 ESP32 或 micro:bit 之類的 SBC。
以下示例展示瞭如何使用 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”!