3 ms·
How do the peers find each other? The installation instructions suggest that I just need to run 'clearskies share ...' on one computer, and 'clearskies attach
by rahimnathwani 13y ago
How do the peers find each other? The installation instructions suggest that I just need to run 'clearskies share ...' on one computer, and 'clearskies attach ...' on the second computer. How will they find each other (on a LAN or, especially, if they're each behind different NAT routers)?
I see that there is some 'tracker' code in the repo:https://github.com/jewel/clearskies/tree/master/tracker https://github.com/jewel/clearskies/tree/master/tracker
Must I run that somewhere that both computers can access, and tell them its address?
- e12e 13y agoLooks like there are various modes of discovery, see under "Peer discovery": https://github.com/jewel/clearskies/blob/master/protocol/core.md https://github.com/jewel/clearskies/blob/master/protocol/cor... I can't find any references to DHT in the code (but the protocol lists that as an extension). For lan udp broadcast: https://github.com/jewel/clearskies/blob/master/lib/broadcaster.rb https://github.com/jewel/clearskies/blob/master/lib/broadcas... For tracker client (apparently gets a list of tracker URIs from the config): https://github.com/jewel/clearskies/blob/master/lib/tracker_client.rb https://github.com/jewel/clearskies/blob/master/lib/tracker_... https://github.com/jewel/clearskies/blob/master/lib/conf.rb https://github.com/jewel/clearskies/blob/master/lib/conf.rb
- jewel 13y agoThere's a common tracker, currently running at clearskies.tuxng.com. The plan is to add DHT support similar to the DHT used by BitTorrent. We'll seed the DHT using the tracker. If you want you can also run your own tracker. You should also be able to add peers manually by IP address and port, but that ability is missing from the ruby client.