由于防火墙阻止端口8080,请求Errno 111的连接被拒绝错误

时间:2020-05-29 13:07:16

标签: python python-requests port firewall

我正在尝试下载以下文件from here,但始终出现以下错误:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www2.nphs.wales.nhs.uk', port=8080): Max retries exceeded with url: /CommunitySurveillanceDocs.nsf/3dc04669c9e1eaa880257062003b246b/77fdb9a33544aee88025855100300cab/$FILE/Rapid%20COVID-19%20surveillance%20data.xlsx (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f30151d4080>: Failed to establish a new connection: [Errno 111] Connection refused',))

我怀疑这是由于我正在使用的MATE VM上的防火墙所致,它似乎阻止了与端口8080的连接,因为我的代码在Windows笔记本电脑上可以正常工作。由于我无权访问防火墙设置,因此有什么解决办法吗?

0 个答案:

没有答案