gfile icon indicating copy to clipboard operation
gfile copied to clipboard

Function without third party server/service

Open Fastidious opened this issue 6 years ago • 4 comments
trafficstars

Is there a way to run this, without relying on a third party server/service?

Fastidious avatar Apr 09 '19 16:04 Fastidious

By third party service, are you referring to the STUN server ?

If you're referring to the Go executable, one of my next goal is to embed it in a static HTML page (via WebAssembly), so it can be easier to use: https://github.com/Antonito/gfile/tree/master/_client/web

Antonito avatar Apr 09 '19 16:04 Antonito

@Antonito I was referring to the STUN server, yes. If a STUN server can't be avoided, how about adding a command line parameter to specify it? Something like --stun=stunserver.example.com:1932, for example.

Fastidious avatar Apr 09 '19 16:04 Fastidious

@Fastidious It's a good idea! This feature has actually been discussed here: https://www.reddit.com/r/golang/comments/bap29y/gfile_a_webrtc_based_file_transfer_utility_in_go/ekd9rbi/ If I'm not mistaken, it is possible to avoid using a STUN server when the two clients are on the same local network.

I'll probably work on it later this week, or I'll gladly accept a PR 😃

Antonito avatar Apr 09 '19 17:04 Antonito

I believed we still need a server for local network WebRTC connection. Although it can be a simple self-hosted websocket server instead of third party STUN server.

References: https://stackoverflow.com/questions/51870278/how-can-you-do-webrtc-over-a-local-network-with-no-internet-connection https://stackoverflow.com/questions/30742431/webrtc-on-isolated-lan-without-ice-stun-turn-server

kirintwn avatar Apr 12 '19 09:04 kirintwn