According to net module reference: <https://nim-lang.org/docs/net.html#sendTo%2CSocket%2Cstring%2CPort%2Cpointer%2Cint%2CDomain%2Cint32>
> This function should normally be used with connection-less sockets (UDP > sockets). And your socket is using TCP.