How to debug websockets with wireshark

Hitul Mistry picture Hitul Mistry · Sep 29, 2012 · Viewed 36.1k times · Source

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.

Answer

Drew Noakes picture Drew Noakes · Feb 25, 2013

You can also filter to show only WebSocket packets by using a display filter:

(websocket)