I have a piece of hardware with built-in user control that can be accessed by entering the IP address of the device in a web browser. The device connects directly to the computer via an x-over ethernet cable and static IP addresses. I need to integrate device management into my C # application.
My thought was to use packet sniffer to track traffic between my PC and the device, while playing with the deviceβs controls in my web browser. Then find out which packages my computer sends correspond to the controls that I use at that time. Then I can create a class of HTTP or TCP packets in my C # application and send them to the device using the Socket class.
However, I am not very versed in network protocols, so when I use Wireshark to track traffic between my PC and my device, Iβm not sure where to even start when we find out which packages do what. Does anyone have any ideas? I am open to everything. Thanks!!
EDIT: It's hard to explain what my device is, but its mostly a sophisticated sensor and is commonly used in industrial applications, so it can probably use Modbus, which I'm pretty familiar with. Do you know how I can determine which protocol is used to verify packets? I noticed (using Wireshark) that packets sent from my PC to the device appear in a template of 1 HTTP packet, then 5 TCP packets and repeat the same sequence while the control is open in my browser. Are there any resources that could better understand what is happening?
source share