Set aside the method of networking, look at the application layer protocol which is used for connection. I have seen such devices which leverage Telnet, HTTP/XML, CORBA, RM/I, direct to database, etc... Once you understand the architecture of the communication then you can set a plan to capture and reproduce the conversation (or leverage the application source code). Then you will also need network impairment to represent that last hop to the client.