@Angle it should be easy
If it were me I'd set a static ip address on each machine in the same subnet.
Modern network cards should auto negotiate being plugged into each other, but if it's old hardware, you would either need to plug both machines into the same switch, or use a null modem cable, either Ethernet or serial should work.
I'm curious what the situation is that you want to do this 😋
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!