Listening port of Logic Machine - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Listening port of Logic Machine (/showthread.php?tid=4969) |
Listening port of Logic Machine - savaskorkmaz - 18.09.2023 Hi, Our customer has a software. This software is sending some informations to 4033 port of our Logic Machine. For logging , i write such as code but all i got is 'Nil' value. Can you check my code please or any suggestion ? require('socket') ip = 'localhost' sock = socket.tcp() sock : settimeout(3) res, err = sock:connect(ip, 4003) log(res) sock:close() RE: Listening port of Logic Machine - admin - 18.09.2023 Your code is TCP client connecting to non-existing local port. Here's an example of TCP server: https://openrb.com/example-lm2-as-tcp-server-for-external-requests/ |