Skip to content

Instantly share code, notes, and snippets.

@alexkuang0
Last active January 13, 2021 07:59
Show Gist options
  • Save alexkuang0/7c4f5a53f883bca41fb5faaf7da4cb65 to your computer and use it in GitHub Desktop.
Save alexkuang0/7c4f5a53f883bca41fb5faaf7da4cb65 to your computer and use it in GitHub Desktop.
(Deprecated) Use Alex's lan-play server on macOS

Install lan-play on macOS

You can either download compiled binary or compile it from source yourself.

Download compiled binary

Go to http://lan-play.com/download

The GitHub releases page currently doesn't provide compiled binary for macOS

Compile it yourself

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

Run lan-play

Based on how you installed lan-play, run it accordingly.

Downloaded compiled binary

cd ~/Downloads # or where you put your downloaded bin
./lan-play-<version>  --relay-server-addr ns.alex0.dev:11451

Run your own compiled binary

cd build/src
./lan-play --relay-server-addr ns.alex0.dev:11451

Miscellaneous

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment