Welcome to OStack Knowledge Sharing 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...