Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't kids these days know how to use netcat? You only need the other's ip. No need to involve a third party.


Different use case, obviously. netcat won't work if both peers are using NAT. Plus, this service enables distribution to many peers as well as asynchronous transmission.


Maybe kids these days know how to use netcat, but sometimes want to send files to people that don't know how to use it.


All ISPs in my country put users under CGNAT, how can this work that way?


Besides NAT, another issue with netcat is that it transfers data unencrypted.


Can this work async? meaning when can the sender turn off their computer.


No, it is direct peer to peer. Thus both computers need to be connected at the same time. If you want async you need a third computer to store the data.

It is a really elegant and ergonomic way to transfer files between computers. It doesn't need any preparatory setup like launching a "server", as with ssh or http. A single, short command line on each computer, and the file is copied.

The only pre-requisite is that both computers are actually connected to the internet. Unfortunately, NAT and other shit broke the internet so this is a difficult pre-requisite to fulfill nowadays. A sad tragedy of our times.

It still often works to transfer files directly between computers in the same lab.


What's the issue with NAT, if you don't mind me asking?


You need port forwarding on the distributor side.


I don't know how to use it, can someone explain?


   dest$ nc -l  > file

   src$ nc $IP_DEST < file
On some installs of netcat you'll need to specify a port because they don't have a default one (typically 31337). Look at the manpage to see what is the case for yours.


nat with ipv4 may be a showstopper.


clearly someone needs to make natcat





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: