frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Transfer files over an Ethernet patch cable

https://maurycyz.com/misc/etherfiles/
44•jllyhill•3h ago

Comments

lstodd•36m ago
I remember we played warcraft 2 over ~15m of cat3 cable stretched outside between two flats on 6th floor. Those were the times, lol.
bronlund•14m ago
I remember playing over a 9-pin RS232 null cable - but I guess that is telling about my age :D

Not Warcraft though - some ancient DOS game.

ButlerianJihad•14m ago
For anyone today who's got copper wire stretched between any buildings, you are in danger and your configuration is quite unwise.

For every standalone building that has a ground, that building also has an electrical potential. This potential is not necessarily the same between two neighboring buildings. When you stretch a copper line between them, you are tempting fate, electrically, not to mention the dangers of lightning strikes and the elements attacking that connection.

It is generally recognized that fiber optics are not only very efficient and durable, but also impervious to electrical troubles of the type that may plague inter-building connections. Simply grab switches or routers that support at least one fiber-optic connection, and link up!

lstodd•7m ago
Who cared, we were 15 at the time.

Besides you worry too much. Entire cities were wired with cat5 hanged off steel cable between 9 to 15 story buildings in early 2000s, before fiber. Nothing burned down.

EvanAnderson•5m ago
I did work for a small community college back in the 90s that had expanded their building multiple times since the 70s. The electrical potential between different parts of the building was significant enough to make wired Ethernet unreliable. (I never did understand why this was-- multiple electric service entrances with separate grounds, I assume.)

Because of this they were an early adopter of fiber-based networking. I remember being wowed by ATM over fiber running between closets at a blazing 155Mbps (with tons of 10BASE-T clients connected to FORE chassis switches).

riobard•36m ago
For the time spent finding the ethernet adapter, plugging the cable, configuring IP addresses, and testing with pings, any decent portable SSD drives should have finished copying tens of GB of data.
yjftsjthsd-h•27m ago
As the article says,

> Removable storage is quite slow unless you are willing to spend a lot of money.

An SSD good enough to copy tens of GB quickly is not cheap.

riobard•15m ago
At this particular point in time, yes SSD is expensive. But 5~10Gbps USB 3.0 SSD had been very affordable for a long time before 2025.
steve1977•30m ago
People discovering that network cables can be used to network things. And then calling it a "trick" (I'm surprised it's not a "hack" actually).
concerned_user•28m ago
Back in the day you needed a modified cable for this with RX/TX swapped on one end but nowadays probably all nic chips have auto-detect so you can take a normal patch cable and do it.
bronlund•26m ago
Yeah, I remember those. When setting up an ad-hoc network, you were like; "where the eff is the crossover cable!" :D
luz666•24m ago
it was the red one, right?
bronlund•19m ago
Mine was just a custom made gray one, but I have seen those red ones, yes :D
steve1977•26m ago
Yeah so called crossover cables. But that's like decades ago.
yjftsjthsd-h•19m ago
nkurz•27m ago
It would be nice if this article defined a "ethernet patch cable". I think he's just using "patch" as a slang term for a short cable and it actually works with any length of standard cable, but I'm not certain.

Traditionally (pre-2000?), one had to use a special "crossover cable" to do direct connections like this, but apparently modern Gigabit ethernet adapters are able to detect this situation automatically?

bronlund•21m ago
The way I learned this, is that patch cables use stranded wires, but ethernet cables use solid wires.
lstodd•19m ago
IIRC crossovers are pre-2000, yes. "Fast Ethernet" or 100Base-T adapters usually could talk over straight link.

edit: as for length, it depends. you won't get a gigabit over 150m of crap cat3, but you will get a link, even if it's 10 half-duplex.

rmunn•18m ago
https://en.wikipedia.org/wiki/Medium-dependent_interface#Aut... is what allowed the switchover to happen automatically, and it got folded into the 1000BASE-T standard. So yes, crossover cables are no longer required because the two Ethernet adapters at either end can negotiate between them to have one of them "flip" the meaning of its Receive (RX) and Transmit (TX) pins.
facepalmz•14m ago
That's exactly what a patch cable is. /facepalm
ButlerianJihad•25m ago
It seems a strange choice, for the demo and for the script, to manually configure addresses on both ends. If your TCP/IP stack is functioning properly, this will not be necessary. Once DHCP fails, you should get a pair of 169.254.0.0/16 (APIPA) addresses, and then Bob's your uncle.

Configuring all this manually adds extra complexity when it seems that the goal is simply to connect up your cable and let 'er fly.

rmunn•10m ago
Back in my college days, 169.254.x.y addresses were the bane of my existence, because my job was getting students' computers set up with the brand-new Ethernet connection in their dorm room. This usually required a tech to come out to their room and configure Windows 95 properly, with IP and DHCP instead of Novell Netware and IPX (I don't remember why Netware/IPX was the default on so many Windows 95 installs, but that was definitely what I found most often when I went to look at someone's computer that "wasn't connecting to the Internet".)

Occasionally we had someone who knew what they were doing and had their Windows 95 settings set up correctly, and then all we had to do was activate their room's Ethernet port and add their MAC address to the DHCP server's list of authorized MACs. But most often I or one of the other techs had to head down to the person's dorm room and set up their computer's network settings correctly before it would work. Once the 169.254 address was replaced by 192.168, my job was finally done. But there were times when that took some doing.

yjftsjthsd-h•24m ago
I am 95% confident you don't actually need to assign IPs. Do this:

  # ping all link-local devices on an interface:
  ping ff02::1%eth0
And then do your socat/rsync/whatever to the only IP that responds.
yitchelle•23m ago
This remind myself the good old 8bit days of using a cross-over RS232 cable to send a file from one computer to another. even at 30bps, it was much more reliable than write my data to a cassette tape on one computer and then reading on the other.
rmunn•21m ago
That used to require a crossover cable; I've done precisely that (with a crossover cable) back before https://en.wikipedia.org/wiki/Medium-dependent_interface#Aut... became widespread. With a straight-through cable, you'd be connecting the Transmit (TX) pin of one adapter to the TX pin of the other one, and the Receive (RX) pin of one to the RX pin of the other — and neither device would "hear" the messages the other one was sending. A crossover cable flipped those wires, so each device's TX pin was connected to the RX pin on the other end, and both devices could "hear" each other.

But with auto MDI-X, each device would notice "hey, I'm sending but not receiving anything," and would try flipping its Transmit and Receive functions around (transmitting on the RX pin and receiving on the TX pin). Since each device waited a random period before doing that, it was very unlikely (nigh-impossible) that they would both flip at the exact same moment. And if they did, the second interval would most likely not be identical either.

I'm simplifying a bit in the explanation above, but that's the broad strokes. And that's how my carefully-labeled crossover cables started gathering dust. (And then I realized "hey wait, I can just use these as normal cables now", and pulled them back out of storage and mixed them with my normal patch cables).

soundworlds•18m ago
That wasn't that long ago was it..?

/looks longingly out the window, and catch my aging face in the reflection

3r7j6qzi9jvnve•7m ago
tbstream looks fun, but hard to use for the casual user -- not sure if it'll get simpler but I don't think I'll remember messing in configfs just to transfer a file:

https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thun...

If you're used to a "normal" network with a router, it's a revelation that you can go direct.
steve1977•4m ago
No, traditionally a patch cable is a cable that you would use in a networking rack to connect (to "patch") from say a network switch to the desk outlets or to another switch. A patch cable would explicitly be NOT a crossover.

The main difference between patch and "normal" is that the former is using stranded conductors and the latter solid conductors.

That makes the patch cable more flexible (physically)

“I just chose words carefully”

https://unsung.aresluna.org/i-just-chose-words-carefully/
615•zdw•8h ago•148 comments

P99 0 ms* autocomplete for 240M domain names

https://ruurtjan.com/articles/p99-0ms-autocomplete-for-240-million-domain-names
66•dbalatero•3h ago•30 comments

Creepy Crawlies

https://people.kernel.org/monsieuricon/creepy-crawlies
1063•zdw•1d ago•521 comments

Transfer files over an Ethernet patch cable

https://maurycyz.com/misc/etherfiles/
45•jllyhill•3h ago•29 comments

It takes 5 cloud services to hear my doorbell

https://blog.vghaisas.com/rube-goldberg-doorbell/
112•vghaisas•2d ago•78 comments

My hobby of building miniatures and taking pretty pictures

https://sandyuraz.com/blogs/tiny-cafe/
66•thecsw•2d ago•7 comments

Why OOP Exists

https://mathspp.com/blog/why-oop-exists
18•lumpa•3d ago•33 comments

Matrox: Graphics for Professionals

https://www.abortretry.fail/p/matrox
84•BirAdam•7h ago•24 comments

Highlighting My Code Based on How Much I Care

https://hank.bond/posts/highlighting-my-code-based-on-how-much-i-care/
12•hankbond•2d ago•2 comments

Haiku R1/beta6 has been released

https://www.haiku-os.org/news/2026-08-26_haiku_r1_beta6
301•metrofun•15h ago•89 comments

Understanding ChatGPT Work

https://simonwillison.net/2026/Aug/30/understanding-chatgpt-work/
139•gmays•5h ago•48 comments

OpenClaw 2.0, Accidentally

https://openclaw.ai/blog/openclaw-2-accidentally
61•doppp•3h ago•52 comments

Internet centralization and the original sin of NAT

https://dreamstation.systems/personal/ntppost.html
42•robinpie•4h ago•23 comments

How to build a diffusion language model

https://kuleshov-group.github.io/blog/blog/2026/how-to-build-a-diffusion-language-model/
58•volodia•7h ago•4 comments

Cores in space: The core memory module from a 1980 Spacelab computer

https://www.righto.com/2026/08/spacelab-core-memory.html
101•pwg•11h ago•17 comments

Show HN: NFC Energy-Harvesting PCB Business Card with an MCU

https://wilsonharper.net/projects/businesscard/
149•WilsonHarper•2d ago•15 comments

A 12TB Steam "teraleak" spills more than a decade of lost PC gaming history

https://arstechnica.com/gaming/2026/08/a-12tb-steam-teraleak-spills-more-than-a-decade-of-lost-pc...
13•WithinReason•57m ago•0 comments

Continuous Diffusion Language Models (CDLM's)

https://sander.ai/2026/08/24/continuous-dlms.html
83•peter_d_sherman•10h ago•33 comments

Sort branches by last commit date

https://ryangreenberg.com/til/git-branches-by-commit-date/
112•speckx•5d ago•42 comments

Hacking IKEA Furniture

https://greenlightning.eu/diy/hacking-ikea-furniture/
299•greenlightning•19h ago•207 comments

Why open source rocks – a new SM750 (Silicon Motion GPU) HDMI Driver

https://github.com/KodeMunkie/sm750hdmifb
98•SillyUsername•12h ago•35 comments

Relm4 makes developing beautiful cross-platform applications idiomatic

https://relm4.org/
30•Bluestein•4d ago•17 comments

Coordination Headwind: How Organizations Are Like Slime Molds

https://komoroske.com/slime-mold/
150•rzk•15h ago•45 comments

Startup Anti-Patterns

https://www.itamarnovick.com/intro-to-startup-anti-pattern-series/
142•rzk•15h ago•72 comments

Commercially Available Bike Generators Are Not Sustainable (2011)

https://solar.lowtechmagazine.com/2011/05/bike-powered-electricity-generators-are-not-sustainable/
43•baud147258•4d ago•39 comments

Show HN: Prove your code produced your claims without making reviewers rerun it

https://github.com/27-GROUP/kveritas-go/
9•Mkld27•4h ago•3 comments

How would you know whether an ancient culture had zero?

https://www.johndcook.com/blog/2026/08/21/ancient-number-system/
50•ibobev•3d ago•23 comments

Racter (1984)

https://www.ubu.com/historical/racter/index.html
22•buescher•2d ago•6 comments

Dad’s Custom Atari Peripherals

https://www.goto10retro.com/p/dads-custom-atari-peripherals
126•rbanffy•3d ago•16 comments

Arbitrary code execution in QubesOS via copy-to-VM error reporting backchannel

https://www.qubes-os.org/news/2026/08/29/qsb-118/
224•vntok•22h ago•89 comments