zerotier / zeronsd

A DNS server for ZeroTier users
https://zerotier.com
BSD 3-Clause "New" or "Revised" License
493 stars 56 forks source link

Cannot find local zerotier-one server that doesn't listen on port 9993 #196

Closed bolu61 closed 1 year ago

bolu61 commented 1 year ago

Trying to start zeronsd on a host where zerotier-one server doesn't listen on port 9993 fails with the following message:

Aug 22 04:37:07.328  INFO zeronsd::init: Welcome to ZeroNS!
Error: Error: Communication Error error sending request for url (http://127.0.0.1:9993/network/<network-id>): error trying to connect: tcp connect error: Connection refused (os error 111). Are you joined to <network-id>?
bolu61 commented 1 year ago

There is also no way to provide the actual port that zerotier-one listens on as a parameter. Or maybe it's just not shown in docs?

laduke commented 1 year ago

It looks like it's hard coded. Not 100% sure. I'm sure we could make it take a port or url as an argument. Just need to find time.

erikh commented 1 year ago

I'll try whacking this out tonight.

erikh commented 1 year ago

This is resolved as of #207. Please wait for that patch to be merged before trying zeronsd.

Hope this helps!

erikh commented 1 year ago

Also, your avatar has a most adorable kitten. :)