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

Flash Player doesn't connect to Policy File Server - still gives SecurityError #2048

Guest
May 10, 2012 May 10, 2012

Copy link to clipboard

Copied

Hi,

I'm having a really weird problem.

Here's the situation:

* I have a server running at http://192.168.0.179. It serves a flash file, WebSocketMain.swf (from https://github.com/gimite/web-socket-js), which tries to do a socket connection to 192.168.0.179:5000.

* I have a socket policy file server running at http://192.168.0.179:843.

* This works fine on the machine the server is running on (running OS X). Flash connects to the policy file server and to the server at port 5000.

* However, on a Windows (64-bit) machine on the same network (192.168.0.175), running Flash 10.3/11.2/11.3 (and in both IE9/Chrome), I get the following error message in the JS console:

LOG: [WebSocket] debug enabled

LOG: [WebSocket] policy file: xmlsocket://192.168.0.179:843

[WebSocket] cannot connect to Web Socket server at ws://192.168.0.179:5000/websockettest (SecurityError: Error #2048: Security sandbox violation: http://192.168.0.179/assets/flash/WebSocketMain.swf cannot load

data from 192.168.0.179:5000.) make sure the server is running and Flash socket policy file is correctly placed

LOG: [WebSocket] closed

* I have tried to modify WebSocketMain.swf to calling Security.loadPolicyFile() explicitly and not, but in both cases Flash Player does not even connect to the policy server at 192.168.0.179. So it doesn't even attempt to read the policy file, yet still throws the SecurityError.

* 192.168.0.179:843 is open from the .175 machine. I can connect to it through a terminal client (such as PuTTY) and receive the policy file without a problem. However, FP simply doesn't want to connect.

* I have tried Security.allowDomain("*") and everything else. Still nothing.

* I even tried modifying the URL to which FP will connect to (which is served by the web server) to 192.168.0.179:80. Nothing. 192.168.0.179:10000 doesn't work either. Even 127.0.0.1 and localhost doesn't work.

I'm out of suggestions. What could be causing this? Why won't FP even try to connect to the policy server?

TOPICS
ActionScript

Views

3.1K

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

Deleted User
May 11, 2012 May 11, 2012

Found the problem: mms.cfg had an entry saying DisableSockets=1, which caused the security error.

Votes

Translate

Translate
Guest
May 11, 2012 May 11, 2012

Copy link to clipboard

Copied

LATEST

Found the problem: mms.cfg had an entry saying DisableSockets=1, which caused the security error.

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