Error accessing a Windows PGM socket with an account without administration

I am trying to use PGM sockets to send data to Windows. I can listen and receive data from a PGM socket using an account other than admin, but when I try to create a socket to send data, I get an exception at this point:

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

The exception is:

An attempt was made to access a socket that was denied by its access permissions

Please note that if I run the same code under an administrator account, it works fine. Is there a way to create a PGM mailbox without starting under an administrator account?

+3
source share
1 answer

I have not found a solution. Administrator privileges seem to be needed.

0
source

Source: https://habr.com/ru/post/1766476/


All Articles