FWGS / xash3d-fwgs

Xash3D FWGS engine.
1.5k stars 224 forks source link

Unreliable work of LAN servers search #1108

Open SNMetamorph opened 1 year ago

SNMetamorph commented 1 year ago

Sometimes it works, sometimes not, in unpredictable manner. Seems that UDP broadcast packet sent only to one of network interfaces (of course it can be multiple in system), and sometimes it can't be same on which server located, sometimes can. Same problem happens in GoldSrc too.

a1batross commented 1 year ago

INADDR_BROADCAST is almost obsolete thing, IPv6 use better scanning for that, allowing to specify network device.

We probably can query network devices from OS, bind each, and send a message to it's broadcast address.

Is it that critical though? On LAN parties, players could enter IP address from console (we still need a GUI for that lol)

SNMetamorph commented 1 year ago

Not that critical, but it'll be more comfortable for users (especially in case when most of players drunk on LAN party), I think in future we can do something in this direction.