I'm using hardware device which is connected to my PC thru Ethernet (TCP/IP or UDP protocol)
How can I read the data available on my ethernet port sent by the device ?

It will be great if someone can guide me.

Regards,