Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update using-udp-services.md #43738

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LucasBenninger
Copy link

@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 karelz and a team 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
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.

1 participant