I was using my MacBook Pro (Mac 1) to control another Mac (Mac 2) using the "Remote Management" feature in System Preferences > Sharing. This allowed me to control Mac 2 from Mac 1 if I was on the same WiFi network on both Macs.
I noticed that screen sharing was quite laggy with some latency. Furthermore, file transfers did not exceed 4-5 MB/s. I presumed this was due to poor WiFi connectivity. During screen sharing the upload speed on Mac 2 never exceeded 3 MB/s, confirming this.
I decided to connect the Macs using an Ethernet cable, hoping that this would improve file transfer and screens sharing capability. The file transfer rate increased to 100-110 MB/s. However, screen sharing seems to be just as bad as before with upload speeds not increasing beyond 3-4 MB/s, suggesting it was still using WiFi to screen share. I was able to confirm this by turning off WiFi on Mac 2, which dropped the screen sharing connection (but still kept the filesystem connected and allowed me to transfer files via the ethernet cable).
Is there any way to force the Macs to use my high bandwidth ethernet connection for remote management/screen sharing? This would allow me to benefit from lower latency and higher frame rate when controlling Mac 2.
I have tried all of the solutions from this answer, but nothing has worked.