Server:
$ cat hugefile.ext | nc -l -p 9999
Client: $ nc server.ip 9999 > hugefile.ext
We tend to forget how the network is built, and how easy it is to use it with the right tools.41–50 of 68 posts
Server:
$ cat hugefile.ext | nc -l -p 9999
Client: $ nc server.ip 9999 > hugefile.ext
We tend to forget how the network is built, and how easy it is to use it with the right tools.While I'm doing command line file sharing, why not just directly transfer a file to my peer with netcat? Server: $ cat hugefile.ext | nc -l -p 9999 Client: $ nc server.ip 9999 > hugefile.ext We tend to forget how the network is built, and how easy it is to use it with the right tools.
While I'm doing command line file sharing, why not just directly transfer a file to my peer with netcat? Server: $ cat hugefile.ext | nc -l -p 9999 Client: $ nc server.ip 9999 > hugefile.ext We tend to forget how the network is built, and how easy it is to use it with the right tools.
While I do agree with you, I think a common "gotcha" is in dealing with port forwards and firewalls.
Earlier quoted context omitted.
While I do agree with you, I think a common "gotcha" is in dealing with port forwards and firewalls.
Of course, NATs will break this type of scenario, but that can easily be solved with SSH tunneling into an accessible server.
I'm always using transfer.sh. It will return a filename that can be shared. For example "curl --upload-file /tmp/test.txt http://transfer.sh/hello.txt" will return http://transfer.sh/6t9me/hello.txt .
Just awesome. I tried custom shell scripts to upload to dropbox and other cloud storages but it never felt right. The other magic is, on Mac you can see the upload status in the browser window if you keep curl.io open.
Agreed. The web UI reacted almost instantly when I hit enter in the terminal. I'd want an interface to destroy the file immediately then fallback to the 4 hour auto-delete. Also some serious details about the author and security before I'd actually consider sending anything mission critical.
@beeskneecaps: I never thought about the link to destroy immediately the file, I'll put it tomorrow, thanks :)
I'm the author, @dizzda on twitter, you'll get additional informations about me.
About the security, i'll be honest, it was just to see if the concept can be interesting for other people, the only security (yet) is that the file will be auto-deleted in 4 hours. Files are hosted on a private dedicated server. So yeah, you can always take care to encrypt yourself your file before send it there.
If many people are interested to use this tool in a more professionnal-way, I can take some time to think about it... Anyway, it's just a real pleasure to hear your feedbacks guys! Please do not hesitate!
Cheers, dizda.
This looks great! You should also provide a copy to clipboard button.
I wonder what their file storage limits are. Can I send them /dev/random ?
What exactly is the point of this? I'm seriously asking. What's a scenario in which Curl.io would be useful?