Skip to content

Comment on $ cat ~/myfile | curl -X PUT --upload-file “-” https://transfer.sh/myfile.txtparent

Comments

You can do that with netcat if either A or B are listening.

I do this fairly regularly.

    A$ tar cv * | nc -l -p 1234

    B$ nc a.example.net 1234 | tar xv
Or I might remove a 'v' and pipe through 'pv' to see the transfer rate and amount.

Well over the "Internet" kind of implies behind a firewall so the service would be a convenience to avoid setting up port forwarding etc.

VPN are a thing.

I recommend just installing cjdns and forwarding the home end. It also encrypts your traffic. You wouldn't want to netcat in cleartext over the internet.

You could always just pipe it through ssh or some other thing. Setting up openvpn or similar is nontrivial - even if you're lucky enough to have a static IP and enough spare time to make it work.

Setting up openvpn or similar is nontrivial

Setting up cjdns is less work than setting up SSH.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.