no connection could be made because the target machine actively refused it.问题解决

第一步:查看端口占用情况netstat -ano
第二步:关闭两台电脑的360,防火墙
第三歩:查看端口。若为两台电脑之间通信。则应使用服务器这台电脑的ip进行连接。利用ipconfig查看本机ip(Ipv4地址)
因为127.0.0.1只适用于本机电脑测试(且两台电脑必须在同一局域网内)
【no connection could be made because the target machine actively refused it.问题解决】参考自:https://stackoverflow.com/questions/41404464/no-connection-could-be-made-because-the-target-machine-actively-refused-it-tcp0

    推荐阅读