2

Every time I start ddev on my Mac, I get a message: Internet connection not detected. There does not appear to be an operational issue, and I can reach the internet from the web container.

I could not find any reference to this message in the ddev docs.

  • 1
    Have you tried any of the [config settings](https://ddev.readthedocs.io/en/stable/users/extend/config_yaml/) like `router_bind_all_interfaces` or `internet_detection_timeout_ms` ? – Daniel W. Dec 17 '20 at 16:53

1 Answers1

2

First, ddev v1.16+ is much less annoying about this, so I imagine you should upgrade if you haven't already.

Second, the biggest cause to date has been problems with Fritzbox routers and dnsmasq set to disallow DNS rebinding, please see https://github.com/drud/ddev/issues/2409

ddev uses the ability to look up *.ddev.site as a proxy for whether it can connect to the internet (or whether it has to add an entry to the hosts file). So if it can't look that up or if it's too slow, it complains.

As mentioned in the comment, you can edit and increase the internet_detection_timeout_ms in ~/.ddev/global_config.yaml

rfay
  • 9,963
  • 1
  • 47
  • 89
  • 1
    I upgraded ddev and added the two configuration stanzas from the comment, increasing the timeout to 1500ms, and the problem is gone. I should have done this scientifically, making one change at a time, but I am an engineer... – Cary Gordon Dec 18 '20 at 20:40