Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to ZeroTier service (VPNs and Hypervisors again) #799

Closed
darkain opened this issue Jun 27, 2018 · 3 comments
Closed

Cannot connect to ZeroTier service (VPNs and Hypervisors again) #799

darkain opened this issue Jun 27, 2018 · 3 comments

Comments

@darkain
Copy link
Contributor

darkain commented Jun 27, 2018

Possibly related to #357 and/or #308

ZeroTier One: 1.2.8
Windows 10: build 1803
VPN service: Viscosity
Hypervisor: VMWare Workstation

It seems like the previous testing and fixing revolved around OpenVPN and Hyper-V. In my particular setup, I'm running Viscosity (which honestly shouldn't be installed anymore since I'm using ZeroTier One as a replacement now), and VMWare Workstation. I'm getting the dreaded "Cannot connect to ZeroTier service" when trying to add a network. I did this because the network list window showed I wasn't connected to anything. I then went to my local network connections to discover the ZeroTier connection was already registered, however it is marked as "unplugged." I tried this with both my wired and wireless NICs in both combinations of connected/disconnected to see if ZeroTier used cable state replication (something VMWare optionally does), but that didn't change anything.

Testing steps:

Rebooting:
no change

Uninstall Viscosity and reboot:
everything is working as expected now.

It appears as though ZeroTier is still conflicting with other VPN providers (possibly mixed with other Hypervisors?)

zerotier

@glimberg
Copy link
Contributor

glimberg commented Jul 2, 2018

This is likely due to the issue fixed here in the dev branch: 352ec34

Basically, by default in the WinSock library, the FD_SETSIZE define defaults to the obscenely low value of 64. This influences the maximum number of network sockets a program can use at once. To contrast, this is set by default to 1024 on Linux. Well we used that macro to define the maximum number of sockets ZeroTier will listen on.

ZeroTier opens up a TCP and UDP socket on each IP address assigned to each network adapter. When you start adding Virtualization adapters such as VMWare, Other VPNs, that number of sockets increases. Throw in a Dual Stack IPv4/IPv6 network and... Well with temporary IPv6 addresses, I'm sure you can see how this gets over 64 quite quickly. ZeroTier then gets into a state where it can't open all of the listening sockets it needs, and you get the Can't connect to ZeroTier Service error.

In the change listed above, FD_SETSIZE is increased to 1024. This will be in the next release.

@gMan1990
Copy link

gMan1990 commented Nov 24, 2018

can use a net-proxy to ZeroTier Service?

@parthghughri
Copy link

This is likely due to the issue fixed here in the dev branch: 352ec34

Basically, by default in the WinSock library, the FD_SETSIZE define defaults to the obscenely low value of 64. This influences the maximum number of network sockets a program can use at once. To contrast, this is set by default to 1024 on Linux. Well we used that macro to define the maximum number of sockets ZeroTier will listen on.

ZeroTier opens up a TCP and UDP socket on each IP address assigned to each network adapter. When you start adding Virtualization adapters such as VMWare, Other VPNs, that number of sockets increases. Throw in a Dual Stack IPv4/IPv6 network and... Well with temporary IPv6 addresses, I'm sure you can see how this gets over 64 quite quickly. ZeroTier then gets into a state where it can't open all of the listening sockets it needs, and you get the Can't connect to ZeroTier Service error.

In the change listed above, FD_SETSIZE is increased to 1024. This will be in the next release.

Can You Explain How to do that? I go through that thread that you've mentioned but can understand how to increase that limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants