As far as I know scrcpy only work because android devices works as USB device/gadget and can be connected to a host, two computers will work both as host and cannot be connected directly. You could do it with something akin to the Raspberry Pi that can work as a USB device instead of a host, but I don't know of any software that does directly(without emulating a network connection, and if you emulate a network connection you could use one of the many sofware for screen sharing) if i remember correctly even scrcpy use ADB to emulate a TCP connection.
I cannot believe transferring a file from one computer to another without a network is still such a pain in the rear.
To avoid this problem, I still carry in my bag two ethernet-to-usb adapter and an Ethernet cable to be able to quickly connect two devices together.