On 28 Oct 2008, at 16:01, Mark Rogers wrote:
I want to (a) listen on port 10000 on my desktop, (b) configure the server to think the device is my desktop, (c) forward any data I get on port 10000 to port 10000 on the device, and send any replies back whilst (d) logging everything going to/from the device.
Any suggestions as to how I might do this? Or some suitable terminology to Google for?
My desktop is Ubuntu and I have the luxury of a GUI there if I need it. The application is a Modbus/TCP driver for an industrial unit if anyone is interested. The protocol is simple, but binary.
netcat may do what you want here.
http://netcat.sourceforge.net/
Cheers,
David