You can either download compiled binary or compile it from source yourself.
Go to http://lan-play.com/download
The GitHub releases page currently doesn't provide compiled binary for macOS
GitHub Repo: https://github.com/spacemeowx2/switch-lan-play
git clone [email protected]:spacemeowx2/switch-lan-play.git
cd switch-lan-play
# install cmake
brew install cmake
mkdir build
cd build
cmake ..
make
Based on how you installed lan-play
, run it accordingly.
cd ~/Downloads # or where you put your downloaded bin
./lan-play-<version> --relay-server-addr ns.alex0.dev:11451
cd build/src
./lan-play --relay-server-addr ns.alex0.dev:11451
- Query number of players online
brew install jq
curl -s ns.alex0.dev/info | jq .online
- Query version of server
curl -s ns.alex0.dev/info | jq .version