WebRTC applications use networks very intensively. Thus sometimes you might need to debug not just the application, but also its communication with other components of the whole system.
In this section, we will cover the process of debugging WebRTC applications using network sniffer.
Network sniffer is a tool for capturing network packets. Usually, such tools can help you to analyze captured data. Using sniffer, you can see and understand how your application communicates with other points.
For our recipe, we will use Wireshark—which is a free and multiplatform network sniffer software. Download it from the home page at http://www.wireshark.org.
This tool is very user-friendly and works on most popular platforms, so you don't need any specific preparations.
You will also need some WebRTC application; you can use any simple hello world application for this purpose.