Connect A to B. Send Data.
In 2023 it's hard to connect two devices directly. Dumb pipe punches through NATs, using on-the-fly node identifiers. It even keeps your machines connected as network conditions change.
What you actually do with that connection is up to you.