Cannot access local network


I cannot access a machine on my local network from a docker container. It was working fine, didn’t change anything to my network or docker config but suddenly it doesn’t work anymore. The ip of the container is while the machine I try to reach has

wget times out in the container. The same command from the host machine works fine. wget to works fine from the container.
I also tested using a clean ubuntu:18.04 image; no success either.
My host is a MacOs machine.