switch-lan-play for Mac
Enjoy games with your friends as if you were on a LAN.
switch-lan-play — overview
Enjoy games with your friends as if you were on a LAN.
Usage
To play with your friends, both you and your friends need to run the lan-play client connecting to the same Server on your PCs, and set static IP on your Switch.
Your PC and Switch must be connected to the same router.
Visit https://www.lan-play.com/ for instructions on how to set this up. See below for build instructions.
SOCKS5 Proxy
lan-play --socks5-server-addr example.com:1080
Data sent to the relay server does not pass through the proxy.
Build
Debug or Release
cmake -DCMAKE_BUILD_TYPE=Debug .. cmake -DCMAKE_BUILD_TYPE=Release ..
Ubuntu / Debian
This project depends on libpcap, you can install libpcap0.8-dev on Ubuntu or Debian:
sudo apt install libpcap0.8-dev git gcc g++ cmake
Prepare cmake and gcc, then run the following:
Windows
Use MSYS2 to compile.
To compile a 32-bit program:
Open MSYS2 MinGW 64-bit or MSYS2 MinGW 32-bit.
Mac OS
Server
Docker
docker run -d -p 11451:11451/udp -p 11451:11451/tcp spacemeowx2/switch-lan-play
Node
Use --port to pass the port parameter, or it will use 11451/udp as the default.
Use --simpleAuth to pass authentication via username and password, or there will be no authentication.
Use --httpAuth to pass authentication via HTTP URL, or there will be no authentication.
Use --jsonAuth to pass authentication via JSON file, or there will be no authentication.
Example:
Meanwhile, the monitor service will start on port 11451/tcp by default. You can get the online client count via an HTTP request:
Request: GET http://{YOUR_SERVER_IP}:11451/info
Response: { "online": 42 }
Protocol
The protocol is quite simple at the moment, but additional fields may be added to calculate network quality (packet loss, ping), such as timestamp, seq_id, etc.
The server can read IP addresses from the payload and save the source IP -> LAN IP to a cache table. If the target IP address shown in the payload doesn't match the cache, the packet is broadcast to the entire room.
Details
让你和你的朋友像在局域网一样玩游戏
How to install switch-lan-play
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2020-06-21; current version v0.2.3, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v0.2.3 | 2020-06-21 | Stable | 927 KB | Download | Download | Download |
| v0.2.2 | 2020-06-20 | Stable | 927 KB | Download | Download | Download |
| v0.2.1 | 2019-08-30 | Pre-release | — | — | Download | Download |
| v0.2.0 | 2019-08-30 | Pre-release | — | — | Download | Download |
| v0.1.0 | 2019-01-18 | Pre-release | — | — | Download | Download |
| v0.0.7 | 2018-12-21 | Pre-release | 198 KB | Download | Download | Download |
| v0.0.6 | 2018-11-29 | Pre-release | — | — | Download | Download |
| v0.0.5 | 2018-10-17 | Pre-release | — | — | Download | Download |
| v0.0.4 | 2018-10-16 | Pre-release | — | — | Download | — |
| v0.0.3 | 2018-10-10 | Pre-release | — | — | Download | — |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Apple silicon · macOS 14 Sonoma
- Apple silicon · macOS 13 Ventura
- arm64_monterey
- arm64_big_sur
- Intel · macOS 14 Sonoma
- Intel · macOS 13 Ventura
- Intel · macOS 12 Monterey
- big_sur
- Linux · ARM64
- Linux · x86_64
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| switch-lan-play | v0.2.3 | GPL-3.0-or-later | CLI | 3 |
| vile | 9.8zb | GPL-2.0-or-later | CLI | 3 |
| makefile2graph | 2021.11.06 | MIT | CLI | 3 |
| pyenv-ccache | 0.0.2 | MIT | CLI | 13 |
Similar apps: Command-line Tools
vile
vile is a command-line text editor whose name comes from "Vi Like Emacs," and as the name…makefile2graph
Creates a graph of dependencies from GNU-Makepyenv-ccache
Make Python build faster, with using the leverage of ccache.uade
uade is a command-line Amiga music player that uses the UAE emulation environment to reproduce…rtags
+html: +html: rtags +html: rtags-xrefac-rtagscompany-rtagsflycheck-rtagshelm-rtagsivy-rtagsopenssl@4
Cryptography and SSL/TLS ToolkitCategories: Command-line Tools