whichip: discover (IoT) device's IP in local network
Install
On (IoT) Device
wget -O install.sh https://raw.githubusercontent.com/observerss/whichip/main/install/install.sh && sudo bash install.sh
Use this script, it will
- download the
whichip
daemon binary file - install as a
systemctl
service - run service immediately
(tested on ubuntu 18.04 arm64 only)
On Any Client
or Download Binary Go Written Client
OS | Arch | URL |
---|---|---|
Windows | x86 | https://1 |
Windows | amd64 | https://1 |
Linux | arm64 | https://1 |
Linux | amd64 | https://1 |
Mac | arm64 | https://1 |
Mac | amd64 | https://1 |
Usage
Discover Device's IP in your local network
$ whichip
# 10.86.2.99
or
double click whichip.exe
All Usages
NAME:
whichip - discover device's IP(s) in your local network
USAGE:
[global options] command [command options] [arguments...]
COMMANDS:
version get version
listen listen to udp broadcast and respond accordingly
discover make udp broadcast to discover device's IP(s)
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--timeout value discover timeout (default: 1)
--all print all IPs
--debug print debug message
--port value the port to bind (default: 53535)
--help, -h show help
Other Clients
There are python and nodejs clients with source code, take a look.