TCP/IP Send

Aquí puedes preguntar o compartir tus dudas y conocimientos acerca del programa
Hello everyone, i need help regarding sending data into remote host using TCP/IP or UDP
Our teacher created an application that can merely receive data using TCP/IP or UDP, now she want us to create a simple application in any language that we can send data to her application,

example: Her application is running in this IP: 192.168.10.10 Port 6524

so i think using AMS if its possible.

i found example_TCP_SERVER_MULTITHREADED i tried but the connection becomes lost after few minutes.
anyone can provide simple example apz for this? thank you so much.



Sendai
For this job theres already luasocket, googles basic udp client:
local socket = require("socket")
udp = socket.udp()
udp:setpeername("192.168.1.xxx", 5474)
udp:send("Data!")
To test it you can use simplest network tool "nc" from here: https://joncraton.org/blog/46/netcat-for-windows/

Open you server by running <nc.exe -u -l 5474> it will listen for udp datagrams then run your program, you must see the output on console