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

An attempt was made to access a socket in a way forbidden by its access permissions #7

Closed
tgraupmann opened this issue May 16, 2019 · 2 comments

Comments

@tgraupmann
Copy link

tgraupmann commented May 16, 2019

I ran into a System.Net.Sockets.SocketException trying to initialize the LIFX client.

var task = LifxNet.LifxClient.CreateAsync();
{"An attempt was made to access a socket in a way forbidden by its access permissions"}

What's the best way to work around this? My first thought is to run as administrator or some other app manifest permission like "Private (Networks Client & Server)".

Thanks,

~Tim Graupmann

@tgraupmann
Copy link
Author

This might be an issue that occurs if you already have the LIFX DLL loaded by another instance of your application or by another application.

@dotMorten
Copy link
Owner

This is almost always the reason. Make sure you close down any other running LIFX apps. Only one process can bind to the UDP port needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants