【发布时间】:2012-05-12 23:23:12
【问题描述】:
我正在尝试使用 XMLSocket.swf 文件,但它没有连接。我需要在我的服务器上打开一个端口吗?我正在尝试在专用的远程 Windows 2008 服务器上运行它。
这是来自 FlashFirebug 的错误:
OK: Root-level SWF loaded: file:///C|/Users/vcaadmin/AppData/Roaming/Mozilla/Firefox/Profiles/70vbx4ys.default/extensions/flashfirebug%40o%2Dminds.com/chrome/content/flashfirebug.swf
OK: Root-level SWF loaded: http://speak-tome.com/flash/XMLSocket.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://speak-tome.com:9997 by requestor from http://speak-tome.com/flash/XMLSocket.swf
Error: Failed to load policy file from xmlsocket://speak-tome.com:9997
Error: Request for resource at xmlsocket://speak-tome.com:9997 by requestor from http://speak-tome.com/flash/XMLSocket.swf has failed because the server cannot be reached.
我的crossdomain.xml被保存到web目录的根目录下,看起来像:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>
【问题讨论】:
-
当我使用yougetsignal.com/tools/open-ports 等服务进行检查时,我注意到我的域 (speak-tome.com - 72.167.253.16) 的端口 843 和 9997 均已关闭。我是否需要打开这些端口才能使策略文件正常工作?