UDP works in windows but not from my Android phone

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pmaillot
Posts: 2
Joined: Wed Aug 14, 2019 8:19 pm

UDP works in windows but not from my Android phone

Post by pmaillot » Wed Aug 14, 2019 8:41 pm

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???

pmaillot
Posts: 2
Joined: Wed Aug 14, 2019 8:19 pm

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

Post by pmaillot » Thu Aug 15, 2019 10:02 am

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

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Thu Aug 15, 2019 10:28 am

Hi Patrick,

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


Best

Klaus

Post Reply

Return to “Internet”