Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

tcping地址之后,通过抓包软件抓不到数据包

起因是这样的:
用pycharm的request去get一个地址,直接报错

urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000001C811273850>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

,而且抓包也抓不到出去的数据包,但是用浏览器可以直接访问,而且用java的httpclient访问也是正常的
image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  1. 看下路由表,抓包抓不到,说明走的不是以太网1网口
  2. 确认下系统、浏览器有没有设置代理。

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...