4 ms·
Don't kids these days know how to use netcat? You only need the other's ip. No need to involve a third party.
by enriquto 4y ago
Don't kids these days know how to use netcat? You only need the other's ip. No need to involve a third party.
- mr_mitm 4y agoDifferent 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.
- mro_name 4y agonat with ipv4 may be a showstopper.
- dxuh 4y agoMaybe kids these days know how to use netcat, but sometimes want to send files to people that don't know how to use it.
- sathishmanohar 4y agoCan this work async? meaning when can the sender turn off their computer.
- enriquto 4y agoNo, 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.
- can16358p 4y agoAll ISPs in my country put users under CGNAT, how can this work that way?
- btdmaster 4y agoBesides NAT, another issue with netcat is that it transfers data unencrypted.
- Phelinofist 4y agoI don't know how to use it, can someone explain?
- enriquto 4y agodest$ 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.