top | item 44704997

(no title)

felurx | 7 months ago

You actually can connect two machines via USB-C (USB4 / Thunderbolt) and you get a network connection.

You only get Link-Local addresses by default, which I recall as somewhat annoying if you want to use SSH or whatever, but if you have something that does network discovery it should probably work pretty seamlessly.

See https://christian.kellner.me/2018/05/24/thunderbolt-networki... or https://superuser.com/a/1784608

discuss

order

userbinator|7 months ago

You only get Link-Local addresses by default

The same thing happens with two machines connected via an Ethernet cable, which appears to be what this USB4 network feature does - an Ethernet NIC to software, but with different lower layer protocols.

dwattttt|7 months ago

Crossover cables, get'cher crossover cables here!

grishka|7 months ago

Non-USB-shaped older Thunderbolt, down to version 1, can do this too, iirc. But you do need the expensive and somewhat rare cable.

Dagger2|7 months ago

ssh is fine:

  ssh fe80::2%eth0
where fe80::2 is the peer's address, and eth0 is the local name of the interface they're on.

Unfortunately browsers have decided that link-local is pointless and refuse to support it, so HTTP is much more difficult.