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

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


        
11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 12:07

    This is the error that is returned when the Windows Firewall blocks the port (out-going). We have a strict web server so the outgoing ports are blocked by default. All I had to do was to create a rule to allow the TCP port number in wf.msc.

提交回复
热议问题