My Livecode server is running in a LINUX DOCKER CONTAINER ON a local mac. I have verified that the socket connection on the standalone works (if I put the LC server code into another standalone running on the local machine, it connects to the "message receiver" and sends the message correctly.)
LC server code:
Code: Select all
<?lc put "<em>Hello World!<em>" -- just a test to make sure the server is working, and it is.
open socket to "localhost:8080"
write "hey there!" to socket "localhost:8080"
close socket "localhost:8080"
?>
Code: Select all
global tSocket
on mouseUp
put "8080" into tSocket
accept connections on port tSocket with message "someoneConnected"
end mouseUp
on someoneConnected tSocket
read from socket tSocket until return with message "newMessage"
end someoneConnected
on newMessage theIp theMessage
put theMessage & return after field "mytext"
read from socket tSocket until return with message "newMessage"
end newMessage