Page 1 of 1

UDP works in windows but not from my Android phone

Posted: Wed Aug 14, 2019 8:41 pm
by pmaillot
Hello,
Rather new to Livecode, and testing if I can do what I need with LiveCode. So far no good...

I have written this simplistic script with a single button app/stack:

on mouseUp
put "/ch/01/mix/on" into tVar1
put numToChar(0) after tVar1
put numToChar(0) after tVar1
put numToChar(0) after tVar1
put ",i" & numToChar(0) & numToChar(0) after tVar1
put numToChar(0) after tVar1
put numToChar(0) after tVar1
put numToChar(0) after tVar1
put numToChar(1) after tVar1
put "192-168-1-68:10023" into tSocket
open datagram socket tSocket
write tVar1 to socket tSocket
end mouseUp

[above, replace - by . of course]

This compiles and works great on my Windows system both from Livecode and as a standalone app. I also built as android, loaded and installed on the phone.
I have a system that responds to 192-168-1-68:10023.
The app installs, loads and runs from the phone, button showing up, but nothing takes place when I press the button. My phone has IP 192-168-1-118, same network.

What goes on???

Re: UDP works in windows but not from my Android phone

Posted: Thu Aug 15, 2019 10:02 am
by pmaillot
Go figure

It works this morning!

No change to the scripts, no change to the phone, no change to the network / IPs....

I think I'll have other questions, but I'll read the web first :)

-Patrick

Re: UDP works in windows but not from my Android phone

Posted: Thu Aug 15, 2019 10:28 am
by Klaus
Hi Patrick,

welcome to the forum!
So glad we could help in this case! :D


Best

Klaus