Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.12k stars 552 forks source link

Agent wont fallback to IPv4 if IPv6 isnt working #5214

Open johncsuti opened 1 year ago

johncsuti commented 1 year ago

Describe the bug If the server has a public IPv6 address listed and the client has an IPv6 address configured the agent will not fall back to IPv4 when it cannot connect using IPv6

To Reproduce Steps to reproduce the behavior:

  1. Have broken IPv6 setup on client.
  2. Install agent.
  3. No connection.

Expected behavior Agent would try using IPv6 first if it cant connect after x amount of time it would fallback to IPv4 and try again.

Screenshots N/A

Server Software (please complete the following information):

SinisterCrayon commented 1 year ago

Can confirm it also affects Windows clients as well. I have a remote office that was all ipv4 until recently when a router switch changed it all to ipv6 and ipv4. All the clients dropped offline and I couldn't get them back online until I disabled ipv6 on the router entirely. Once I did that all the clients reconnected normally.

This is a workaround, but not a fix. I'd really prefer that it just cleanly switched from ipv6 to ipv4.