OSX Firewall Issues
Running on MacOS Sonoma 14.5, .net 8.0, c#, Rider 2024.1.2
I am creating a simple listener service that also uses Makaretu.DNS to broadcast that the service is available. The service listens on a specified port and sends text-based messages and receives messages via this port using TCPClient.
Up until a few days ago, this seemed to be working fine. The broadcast worked and I could see it broadcasting via the Bonjour Discovery app and my client could connect to the service. I could also access it via a web browser. All-access is on the same local network. Same IP range and netmask.
Now, the only way I can get this to work is if I turn OFF the MacOS firewall. If it is on, bonjour will not broadcast (it does not show up in the Discovery list) and the client cannot see it. Going to the IP address, on the same machine, via the web browser will time out. If I turn OFF the firewall, all works as expected.
Has anyone encountered this? Any suggestions? I have tried little-snitch and opened up Rider for full in/out access but that did not solve it. The only way to solve it is to turn off the firewall and that does not seem like a good thing.
Ideas?
Please sign in to leave a comment.
How about using dotnet run to execute the listener service in the system terminal? To see if the issue only happens when applications start in Rider.