On 2021-04-22, tastytea <gen...@tastytea.de> wrote: > On 2021-04-22 14:27-0000 Grant Edwards <grant.b.edwa...@gmail.com> > wrote: > >> I'm trying to figure out a convenient way to transfer files between a >> Linux machine (running Gentoo) and a Windows 10 machine (which has no >> internet access). IP connection between the machines is not allowed. > > The easiest solution would be to connect both machines with an ethernet > cable and run samba on Linux. The interfaces will be configured with a > link-local address¹ automatically.
That won't use IP? >> Yes, I can shuffle a USB flash drive back and forth, but that's >> really annoying. >> >> Can I run an MTP server on a Linux host and connect a USB-C port on >> the Linux machine to the USB-C port on the Windows machine (assuming >> the Linux port is dual-role, which I need to confirm). > > If USB connections between the 2 machines are allowed then “IP > connection between the machines is not allowed” surely does not apply > to direct ethernet connections between the 2 machines? I was told that it did. It's possible that a local point-to-point Ethernet connection with a non-IP protocol would work. One idea was to configure a Raspberry py with USB port in gadget mode and run an MTP server for use by the Windows side. The Linux side can use NFS or whatever. If the Linux machine had USB ports that supported gadget mode (or USB-C dual-role), then I could just run the MTP server on it, but I'm doubtful that's the case. However, I've done some testing, and the description of the situation that I was given doesn't seem to to be correct, so I think my initial question is (at least for the moment) moot. -- Grant