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

Fix for UDP broadcast #439

Merged
2 commits merged into from
Nov 16, 2014
Merged

Fix for UDP broadcast #439

2 commits merged into from
Nov 16, 2014

Conversation

dmytroett
Copy link

Right now, if you'll try to use Network target and specify address="udp://255.255.255.255:9090" (255.255.255.255 is udp broadcast address, i.e. all messages sent to this address will be broadcasted to all machines inside this local network) in nlog config file, NLog will not send messages over udp. You need to excplicitly set EnableBroadcast in System.Net.Sockets.Socket to true. This pull request fixes this problem.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx#WSAEACCES here you can find some information about this.

@ghost
Copy link

ghost commented Nov 16, 2014

Thanks for the pull request looks good, I'll merge it right away

ghost pushed a commit that referenced this pull request Nov 16, 2014
@ghost ghost merged commit a5cb62a into NLog:master Nov 16, 2014
@ghost ghost added the bug Bug report / Bug fix label Nov 16, 2014
@ghost ghost added this to the 3.1.1 milestone Nov 16, 2014
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants