如何使用wireshark调试websockets [英] How to debug websockets with wireshark
问题描述
我在本地主机 ws://localhost:8001 上使用 python Tornado 服务器 托管了我的 websocket 服务器,并且客户端在 192.168.0.116 上的另一个系统上,所以当我们尝试时沟通它工作正常,但不能使用 wireshark 调试它.我的 websocket 在端口 8001 上运行,所以我尝试使用
I have hosted my websocket server using python tornado server on localhost ws://localhost:8001 and client is on another system on 192.168.0.116 so when we try to communicate it works fine but cant debug it using wireshark. My websocket is running on port 8001 so i tried using
tcp.port==8001
但没有找到结果,所以我在http上试了一下我在局域网的 ip 是 192.168.0.219 和端口 8001.所以
but no result found so i then tried it on http my ip in lan is 192.168.0.219 and port 8001. so
http.host == 192.168.0.219 && tcp.port == 8001
但没有找到结果.还有什么我可以尝试调试我的 websocket 的.
but no results found. Is there anything else that i can try to debug my websocket.
推荐答案
我终于找到了.
当我放
tcp.dstport == 8001 || tcp.srcport == 8001
到时候我就可以拍了.
这篇关于如何使用wireshark调试websockets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!