运行客户端程序出现如下提示:   
  project   PROJECT1.exe   raised   exception   class   ESockError   with   message   'Windows   socket   error:不能做任何连接,因为目标机器积极的拒绝它.(10061),on   API   'connect'  服务器端scktsrvr.exe已运行!!   

解决方案 »

  1.   

    CSDN:解释Socket 10061: 
    Connection refused. No connection could be made because the target machine actively refused it. This usually results from trying to connect to a service that is inactive on the foreign host — that is, one with no server application running. 如果运行了服务端的话,你看端口是不是被禁了,或者没有协议。