Most of these replies were not working for me after running into the same issue in late 2024 on a Macbook.
For me, the solution ended up being to open System Settings > Privacy and Security. Then scroll to find Local Network. Make sure it is enabled for Google Chrome or whatever browser you hit issues with.