an attempt was made to access a socket in a way forbbiden by its access permissions. why?

前端 未结 11 1250
北荒
北荒 2020-11-28 11:49
 private void StartReceivingData(string ipAddress, int iPort)
    {
        try
        {
            if (!_bContinueReciving)
            {
                //initia         


        
11条回答
  •  囚心锁ツ
    2020-11-28 12:28

    Reload Visual Studio with Administrator privileges. Windows Sockets (WinSock) will not allow you to create a SocketType.RAW Socket without Local Admin. And remember that your Solution will need elevated privileges to run as expected!

提交回复
热议问题