gfile is a WebRTC based file exchange software.
It allows to share a file directly between two computers, without the need of a third party.
This project is still in its early stage.
The STUN server is only used to retrieve informations metadata (how to connect the two clients). The data you transfer with gfile
does not transit through it.
More informations here
gfile send --file filename
# SDP being the base64 SDP gotten from the other client
echo "$SDP" | gfile receive -o filename
gfile
is able to benchmark the network speed between 2 clients (1 master and 1 slave) with the bench
command.
For detailed instructions, see Sender
and Receiver
instructions.
This feature is still an experiment.
# Run as 'master'
gfile bench -m
# Run as 'slave'
echo "$SDP" | gfile bench
A web interface is being developed via WebAssembly. It is currently not working.
In order to obtain a more verbose output, it is possible to define the logging level via the GFILE_LOG
environment variable.
Example:
export GFILE_LOG="TRACE"
See functionsetupLogger
inmain.go
for more information
Special thanks to Sean DuBois for his help with pion/webrtc and Yutaka Takeda for his work on pion/sctp