so I'm making a local multiplayer game that allows a server and client to see each other by broadcasting a UDP message from the server every second with some information, such as the name of the game, IP of the host, number of players, etc. I was using sf::IpAddress::Broadcast but it returns 255.255.255.255 with works on localhost, but other people in the LAN didn't receive any messages.
I read
https://serverfault.com/questions/219764/255-255-255-255-vs-192-168-1-255 and so instead of using sf::IpAddress::Broadcast, I changed it to 192.168.1.255, and it works perfectly, I understand that this wouldn't work on all networks as they would have different network addresses, but I'm just wondering why sfml returns an IP that doesn't work on the LAN.
This might be a problem only for me, I'm not sure but any help or information about it would be appreciated.