An example of Discord call traffic captured via Wireshark involves analyzing the encrypted voice and video data packets exchanged between the Discord client and Discord's voice servers. Here is a detailed overview based on reverse engineering and Wireshark analysis:
How Discord Call Traffic Works
- When you join a Discord voice channel, your client sends a
VOICE_STATE_UPDATE message over Discord's gateway to indicate the channel and guild ID.
- Discord responds with a
VOICE_SERVER_UPDATE message containing the voice server's domain and port (e.g., rotterdam1234.discord.gg:443).
- Your client then opens a WebSocket connection to this voice gateway (e.g.,
wss://rotterdam1234.discord.gg:443?v=7).
- Over this connection, Discord provides the IP and port of the actual voice server and a list of encryption modes. The client typically selects an encryption mode like
aead_aes256_gcm_rtpsize.
- Voice and video data are sent as UDP packets to the voice server, often on ports between 50000 and 65535.
Capturing and Filtering Discord Voice Traffic in Wireshark
- Use Discord's voice debug panel (click "Voice connected" > "Debug") to find the hostname of the voice server.
- Perform a DNS lookup on this hostname to get the IP address.
- In Wireshark, apply a filter such as
ip.addr == [voice_server_ip] to isolate traffic to and from the Discord voice server.
- Discord voice traffic uses UDP and does not fully adhere to the standard RTP protocol, but RTP-like packets can be identified.
- Payload types in RTP packets can indicate the codec: 120 for Opus audio, 101 for H264 video, and 102 for RTX (retransmission) video.
Characteristics of Discord Call Traffic in Wireshark
- The audio data is encrypted using Salsa20 or AES-based encryption modes.
- RTP packets contain encrypted audio/video payloads, authentication tags, and sequence numbers.
- Discord servers decrypt and inspect all audio/video traffic server-side in real-time, which means malformed or tampered packets are dropped before reaching clients.
- Video and audio bitrate and resolution are not strictly enforced by Discord, allowing a wide range of quality settings.
Summary Example of Wireshark Capture
- You will see UDP packets exchanged between your client IP and the Discord voice server IP on high UDP ports.
- Packets labeled as RTP with payload types 120 (audio) or 101 (video).
- Encrypted payloads that cannot be directly decoded without the encryption keys.
- Control messages over the WebSocket connection on port 443 (TCP) to the voice gateway.
This approach to capturing Discord call traffic with Wireshark was documented by reverse engineers and enthusiasts who created simple Wireshark Lua plugins to help identify Discord RTP streams and decode some metadata[4][5]. However, due to encryption and server-side inspection, the actual audio/video content remains protected and cannot be easily decrypted or replayed without the appropriate keys.
In practice, to capture Discord call traffic in Wireshark:
- Start capturing on the network interface used by your Discord client.
- Use Discord's voice debug panel to find the voice server IP.
- Filter traffic by that IP and UDP ports 50000-65535.
- Analyze RTP-like packets for encrypted voice/video data.
This method provides a clear example of Discord call traffic as seen in Wireshark captures[4][5].