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.
The Wireshark dissector is fully functional with WebSocket protocol.
First, you need to copy your web browser's header to here and use json. dumps to convert it into the string format. After that, create the connection to the server by using create_connection . Then, perform the handshake by sending the message, and you will be able to see the data on your side.
You can also filter to show only WebSocket packets by using a display filter:
(websocket)
Finally i found it.
When i put
tcp.dstport == 8001 || tcp.srcport == 8001
At that time i can capture it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With