TCPSocket reconnect issue on Mac

I set up two filters, one to show all packets going from my desktop app to the MCU and one for all packets coming in (The App’s Client is at 8888, and the remote server is 8889)

This is the result in PacketPeeper for Outgoing packets:

Two interesting things here:

  1. Every single OUTGOING packet from my Xojo app is tagged in PacketPeeper as having a bad checksum.
  2. at 2021-12-06 14:09:20.327 the port number (locally, for my desktop app) changed to 60994. This is when I quit my app, relaunched, and re-initiated the connection.

After #2 happens, I no longer receive acknowledgements of commands from the MCU.

Here’s what the INCOMING packets look like:

No bad checksum errors on the incoming packets.