Hi, I tried to set up ZeroTier for LAN gaming. The results are overall alright, but could be better.
Setup:
- Broadcasts can be sent across using 255.255.255.255 if BindToInterface is preloaded (additionally built 32-bit using
-m32
):
BIND_INTERFACE=<interface_name> BIND_EXCLUDE=127.0.0.1 LD_PRELOAD=$HOME/builds/BindToInterface/bindToInterface.so:$HOME/builds/BindToInterface/bindToInterface32.so <command>
- It also works in a way less hacky way by using the procedure here:
route add -host 255.255.255.255 dev <interface_name>
- The above was tested using
nc -luk 12101
on one side andecho -n "test" | nc -u -b 255.255.255.255 12101
on the other
What works:
- Overall connection to a ZeroTier network, both sides can be pinged
- Source games LAN discovery (tested with Team Fortress 2)
- Saints Row 3 LAN discovery
What doesn’t work:
- Saints Row 2 (Windows version under Proton)
- Running ZeroTier alongside a bridge interface (disabling it works)
- Using default
firewalld
rules
Please offer some advice and perhaps a working setup to work with, I think I have run out of things to try to get Saints Row 2 to work.