trebleshot / desktop

An Open-Source file sharing software for Linux, macOS and Windows allowing you to send and receive files over available connections, and pause and resume transfer process even when an error is given
GNU General Public License v2.0
33 stars 6 forks source link

Docs - Firewall Ports #21

Open 4oo4 opened 5 years ago

4oo4 commented 5 years ago

Can you add something to the README or docs that mentions these firewall ports that need to be opened?

https://github.com/genonbeta/TrebleShot-Desktop/blob/c40a27ddc84b9bf468af9f435e0f995ed884da9a/src/config/Config.h#L23-L24

Can someone point me to the docs that say what each is used for?

Cheers

velitasali commented 5 years ago

The port 58762 will not be used in the future. You might find a better description here https://velitasali.com/blog/development/developing-a-trebleshot-based-application/

In short, TrebleShot opens 3 different sockets, one is for the communication which is 1128, the other is 58762 which is used to share the files and the last one randomly opened while transferring the bytes of the files. However, this is the old design and in the future, only 1128 will be used. The reason why there were 3 different sockets is that the first two were CoolSocket servers and raw data transmission was not possible using it.