ConnectionRefusedError: [Errno 111] Connection refused

i was working in a sender and recever UDP connections to sending and receve object posititon as a massage and that’s worked but someone told me " If you want reliable sequential message delivery, you use TCP" so i converted my code to TCP connection but when i run it i get this error

Attachments

mclient1.blend (500 KB)mserver.blend (498 KB)

UDP doesn’t guarantee reliable ordered messages, but for realtime games it’s usually the better choice. You can write code to provide reliable packets and ordering if you needed, but usually simply reliable suffices.

These questions are not Blender specific and probably better in a Python forum / IRC. Or, google what the error means.