Can't you just use file sharing? SMB is built into both Windows and macOS:
https://en.wikipedia.org/wiki/Server_Message_Block
https://learn.microsoft.com/en-us/windows/win32/fileio/micro...
https://support.apple.com/guide/mac-help/connect-mac-shared-...