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

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


        
11条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 12:28

    I'm developing an UWP application which connects to a MQTT broker in the LAN. I go a similar error.

    MQTTnet.Exceptions.MqttCommunicationException: 'An attempt was made to access a socket in a way forbidden by its access permissions [::ffff:xxx.xxx.xxx.xxx]:1883'
    
    ExtendedSocketException: An attempt was made to access a socket in a way forbidden by its access permissions [::ffff:xxx.xxx.xxx.xxx]:1883
    

    Turned out that I forgot to give the app the correct capabilites ...

提交回复
热议问题