Solution for problems with ZeroTier One on Windows.
The latest versions of ZeroTier One 1.12.x no longer work properly with Windows 11 (verified with version 22H2). When you launch zerotier_desktop_ui.exe, the icon disappears after a few seconds and in fact the program closes. I think it is a bug or a conflict with the latest versions i Windows 11
To solve it I used the command line (solution searched on perplexity.ai)
You need to know the ID of the private network to access, I will call it network_id
so if you don’t have it create an “Access Token” API in https://my.zerotier.com/account
Then type the following commands from the command line (or write them in a batch file) substituting your values for network_id and auth_token
cd "C:\Program Files (x86)\ZeroTier\One"
REM Join to private network
zerotier-cli join network_id
zerotier-cli set network_id authorized=1
zerotier-cli set network_id controller=zerotier
zerotier-cli set network_id authtoken=auth_token
REM Testing join
if the response zerotier-cli status contains 200 and ONLINE we are connected to the network
while if the zerotier-cli listnetworks response contains 200 and OK PRIVATE, the PC has been correctly assigned an IP on its private network.
On the other hand, if we get ACCESS_DENIED PRIVATE it means that the PC should be enabled on the private network from https://my.zerotier.com/network/