Does anybody know how to get data from the ethernet port?
Is there a library for it? I don't really know how networking works

Basically there is going to be a microcontroller sending data over ethernet,
and I want to get the data it sends and write it to a file


Thanks

Recommended Answers

All 2 Replies

Well, ethernet cables connect to your network card,
so you'll be dealing with your network card mainly.
You need to search for modules that allow for packet capture and things like that.

If it is less complex than sockets, there's the Python version for PCap ( (packet capture API) such as PCapy, winpcapy, etc. By searching python and pcap you'll get them right away on Google and see which one is better and easier to use.

I used to capture network adapter data using WinPCap in C, haven't tried in Python, but it was fairly easy to use and adapt.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.