Setting the network mode to host, and using linux or a different docker provider (like orbstack) that allows containers to inherit the host’s network solved the issue.
Setting the network mode to host, and using linux or a different docker provider (like orbstack) that allows containers to inherit the host’s network solved the issue.