Fixed a bug where the packets were being sent to the wrong port