Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by ggerganov on Monday April 08, 2019 @04:37AM
(#19603293)
I actually did such kind of experiment recently [0]. As a bonus, the users do not have to copy/paste the SDP data manually - instead it is transmitted through sound!
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by Antonito on Monday April 08, 2019 @01:09PM
(#19607033)
That project is really cool!
I'm planning to work on the SDP stuff at some point. It works well, but sharing two base64 encoded strings isn't very practical :/
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by Antonito on Monday April 08, 2019 @10:35AM
(#19605559)
Yup, it can be done! Actually, it's one of my next objectives for it. I started to write a front-end client, with WebAssembly.
It's not fully working yet, but you can take a look at it here:
https://github.com/Antonito/gfile/tree/master/_client/web
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by Sean-Der on Monday April 08, 2019 @04:44AM
(#19603331)
The use case that excites me is transfer between servers/no X11. Just a single binary, no deps to worry about.
They could also be air gapped, both behind NATs and other non-standard topologies. ICE will take care of all the hard problems :)
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by est on Monday April 08, 2019 @05:49AM
(#19603663)
> transfer between servers
A simple NC command would do.
Or something like python -m http.server and curl
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by giancarlostoro on Monday April 08, 2019 @06:27AM
(#19603841)
Heh can't tell you how many times I've used that python http server. Sure enough no matter the OS if Python is installed, it gives me the edge if I can access machines behind the same network.
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by Sean-Der on Monday April 08, 2019 @10:53AM
(#19605732)
That wouldn’t work if they don’t have a direct connection (my main use case)
I have a bunch of servers with no public IPs split between different regions.
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by zimbatm on Monday April 08, 2019 @04:48AM
(#19603353)
On a server it makes sense if there is no UI involved.
Potentially the sender could output a URL that contains the SDP. That way the receiver can either be a CLI or a web browser.
Re:Show HN: Gfile, a WebRTC based file transfer utility in Go
by imetatroll on Monday April 08, 2019 @08:23AM
(#19604517)
The page needs to run the appropriate javascript. That is all. Of course a STUN server at the least is required.
> It allows to share a file directly between two computers, without the need of a third party.
Can it be done with a single HTML file instead of Go?
You know, which can be hosted anywhere even on Github pages.