Skip to content

Conversation

@LucasBenninger
Copy link
Contributor

@LucasBenninger LucasBenninger commented Nov 24, 2024

Summary

Set s.EnableBroadcast to true to avoid exception
System.Net.Sockets.SocketException (13): Permission denied

Describe your changes here.

Added the line
s.EnableBroadcast = true;
following the creation of the socket object to avoid encountering a permission denied socket exception.

Fixes #Issue_Number (if available)


Internal previews

📄 File 🔗 Preview link
docs/framework/network-programming/using-udp-services.md Use UDP services

Set s.EnableBroadcast to true to avoid exception
System.Net.Sockets.SocketException (13): Permission denied
@LucasBenninger LucasBenninger requested review from a team and karelz as code owners November 24, 2024 22:46
@dotnetrepoman dotnetrepoman bot added this to the November 2024 milestone Nov 24, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Nov 24, 2024
@gewarren gewarren requested a review from a team April 1, 2025 21:58
@gewarren gewarren enabled auto-merge (squash) April 3, 2025 23:56
@gewarren gewarren merged commit e6f0207 into dotnet:main Apr 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-framework/svc dotnet-networking/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants