• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Sending and receiving sockets in desktop AIR - Sandbox issue?

Participant ,
Dec 06, 2017 Dec 06, 2017

Copy link to clipboard

Copied

I have used the example on this page to create an AIR app that can send and receive UDP data.

Adobe Flash Platform * Sockets

If I install the AIR application on another Mac (2) , set the IP addresses for targetIP and localIP and run it, I can then send messages from that Mac (2)  to the same AIR app running inside Flash CS6 on my Mac (1).  Mac1 has the local/target IPs reversed). I can read them in the output window.

If I send a message back from Mac1 to the app running on Mac2 , Mac2's application does not display the message.

If I install the AIR application on Mac1 and then send a message from Mac2 to it, Mac's application does not get the message.

It appears that receiving UPD works in the Flash IDE, but not in an installed AIR desktop application. Is this to do with sandboxing? The documentation and example clearly says it will work, and does not mention application domain sandboxes as an issue.

Any ideas, please?

TOPICS
ActionScript

Views

415

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Dec 08, 2017 Dec 08, 2017

This works. Just some silly error on my part logging and printing the UDP.

No sandbox policy file is needed for this to work.

Votes

Translate

Translate
Participant ,
Dec 08, 2017 Dec 08, 2017

Copy link to clipboard

Copied

LATEST

This works. Just some silly error on my part logging and printing the UDP.

No sandbox policy file is needed for this to work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines