title: Emulate Server-Client TCP Communication
body: <p>I have a device (made in china) that works great but with a very annoying flaw. It's a massage device that will only work if it is connected to the internet at startup. Once it starts, it would work without the internet until it is turned off. So in short, if the internet is down, it will never work or it is impossible to bring this device on an area with no connection.</p>
  
  <p>What I'm planning to do is emulate its server/client communication at start-up by using an old-PC that would run the server emulator software and some DNS re-routing and a WiFi router (using the PC as WAN).</p>
  
  <p>I'll connect the device on the router, and its communication with the Chinese Server is emulated by the PC.</p>
  
  <p>Can anyone give me an idea where to start, tools needed etc? I'm a programmer but new to packet emulation/replay. I've sniffed packets that the device does and its always consistent on every start/restart of the device. Here's the wireshark capture (IMG):</p>
  
  <p><a href="https://i.stack.imgur.com/s5DSS.png" rel="nofollow noreferrer">WireShark Packet Capture</a></p>