Q: How to debug websockets with wireshark 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

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

but no results found.
Is there anything else that i can try to debug my websocket.

A: Finally i found it.
When i put 
tcp.dstport == 8001 || tcp.srcport == 8001

At that time i can capture it.

A: Check the syntax for filters, in your case, it should be tcp port 8001.
Step by step:


*

*Capture options

*Select the network interface

*Fill the filed next to the button "Capture Filter:" with tcp port 8001

*Start


A: You can also filter to show only WebSocket packets by using a display filter:
(websocket)

