dat-ecosystem-archive / hypercloud

A hosting server for Dat. [ DEPRECATED - see github.com/beakerbrowser/hashbase for similar functionality. More info on active projects and modules at https://dat-ecosystem.org/ ]
https://github.com/beakerbrowser/hashbase
97 stars 12 forks source link

Can we expect connections initiated by hypercloud, to user devices, via the DHT, to succeed? #57

Closed pfrazee closed 7 years ago

pfrazee commented 7 years ago

I'm currently debugging the connectivity between Beaker and Hypercloud, when Hypercloud is on a VPS.

Condition Hypercloud discovered my device via the DHT, but my device did not discover Hypercloud. Hypercloud attempted to connect to my device, but failed. This is, presumably, because my device is behind the NAT.

Question Since there's no hole-punching involved there, it's just impossible that the connection would succeed. For DHT discovery, the only option is that my device initiates the connection. Correct?

pfrazee commented 7 years ago

cc @mafintosh

mafintosh commented 7 years ago

Yes. You'd have to wait for the client to enter a new DHT lookup cycle (~5mins). Alternatively if you are also using dns discovery (using remote dns servers) it should just work right now as the VPS' address will be pushed to the client.

pfrazee commented 7 years ago

Ok cool. DNS discovery wasnt working, which is what I was investigating before bed.