Make you and your friends play games like in a LAN.
Internet
|
ARP,IPv4 | LAN Packets
Switch <-------> Router(lan-play) <-------------> Server
UDP
The packages in this repository implement the switch-lan-play
client on OpenWrt.
To play with your friends, you and your friends should run the switch-lan-play
client connecting to the same server on your PC, and set static IP on your Switch.
Prebuild ipk only available for some arch. If you can't find suitable ipk, please try to open a issue or PR. You can also build in your own hardware.
Choose suitable url with your hardware arch, for example http://htynkn.github.io/openwrt-switch-lan-play/x86/64
add src/gz switch_lan_play http://htynkn.github.io/openwrt-switch-lan-play/x86/64
to your custom feeds and install with UI.
To build switch-lan-play for OpenWrt, first add this feed to your feeds.conf
in a fully set-up OpenWrt SDK (read here on how to setup the OpenWrt SDK):
echo "src-git openwrt_switch_lan_play https://github.com/htynkn/openwrt-switch-lan-play.git" >> feeds.conf
$ ./scripts/feeds update -a
$ ./scripts/feeds install -a
Enable building the packages.
make menuconfig
Network -> Lan-play -> switch-lan-play <*>
LuCI -> 3. Applications -> luci-app-switch-lan-play <*>
Build the packages.
make package/luci-app-switch-lan-play/compile
make package/switch-lan-play/compile
Install the packages to your router.
opkg install /tmp/switch-lan-play-*.ipk
opkg install /tmp/luci-app-switch-lan-play-*.ipk
Package luci-app-switch-lan-play (c) @skylovebeauty
Package switch-lan-play (c) spacemeowx2
Package openwrt-switch-lan-play (c) @hurrian