Reading UDP Packets from an Ethernet Capture

  • Developers
  • Reading UDP Packets from an Ethernet Capture
Bailey Cochran

Posted on 03.08.2022 17:34

I was wanting to know if it's possible to read UDP Packets from an Ethernet Capture in code.


I have been using DWDataReader in Python, and via the provided example code, I am able to see that the capture has 4000+ packets on one channel, and 2000+ packets on another. But I was wanting to know if it's possible to access those packets in code?

Matic Pevec
Customer Support Engineer
Posted on 11.08.2022 17:21

Dear Bailey,


Thank you for reaching us out. I'm not entirely sure what would you like to achieve. Can you provide us an example?


Best regards

Bailey Cochran

Posted on 11.08.2022 17:26

@Matic Pevec


Hi! Thank you for responding.


I have a capture using the 'Ethernet Reciever' plug-in in Dewesoft. I have opened this capture, or DXD file, using the DwDataReader.dll, and based on the output provided I can see a UDP packet count. However, I am wanting to actually get to those UDP packets and view their contents. Is this possible?


I hope that made more sense than my initial comment.

Matic Pevec
Customer Support Engineer
Posted on 19.08.2022 16:03

Dear Bailey,


Opening Ethernet receiver channels (binary data) is available with newer versions of DWDataReader library. I recommend to use the latest one v4.2.0.23, but v4.2.0.20 should be fine also. Attached is an python example which may help you at reading UDP packets.


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .