key-networks / ztncui

ZeroTier network controller UI
GNU General Public License v3.0
1.51k stars 227 forks source link

Not retrieving data from API #127

Open prubio7 opened 9 months ago

prubio7 commented 9 months ago

Hello,

I'm just trying to send GET/POST messages to my local controller, e.g.: curl -H "x-zt1-auth: $TOKEN" -H "Content-Type: application/json" -X POST -d $MYDATA "http://localhost:9993/controller/network/$ZEROTIERNETWORKID/member/$MYID"

However, I'm always getting an empty response: {}

Before the update it worked fine, not sure what I can do at this point. Any help will be appreciated.

Thank you!

prubio7 commented 8 months ago

Hi,

TCP Port 9993 was only listening on localhost. I was able to solve this by adding local.conf to /var/lib/zerotier-one: { "settings": { "allowManagementFrom": ["0.0.0.0"], "softwareUpdate": "apply", "softwareUpdateChannel": "release" } }

Best regards,