Desktop: sync connections stay on local networks

The desktop sync server accepts connections only from the computer’s own local networks. Implemented for Windows and macOS; final V3 release checks continue.