I'll also vouch for syncthing. It's the best file sharing application. It works cross platform, has windows, linux, android and mac clients.
I can choose to share specific folders for each device. I have one set up on a DO droplet and seamlessly syncs across all my devices.
Also, when two devices are on the same LAN, it discovers the devices automatically.
Couldn't praise it enough!