Question

I'm trying to use PGM sockets to send data on Windows. I can listen and receive data fine from a PGM socket using a non-admin account, but when I try to create a socket to send data I get an exception at this step:

socket.Bind(new IPEndPoint(IPAddress.Any, 0));

The exception is:

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

Note that if I run the same code under an admin account it works fine. Is there a way to create a sender PGM socket without running under an admin account?

Was it helpful?

Solution

I never found a solution to this. Seems like admin privileges are required.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top