java - loadPolicyFile doesnt work in AS3 -


(im bad in english try good explain)

i got client socket in as3 , server in java. in localhost, got no problem connect client , server. can exchange data no problem line :

socket.connect("127.0.0.1", 2030); 

its ok, server can receive byte[] data , can read , write client no problem.

but want past server "online" open port 2030 connection , 82 port, , try read crossdomain.xml autorized, :

security.loadpolicyfile("http://90.20.233.143:82/crossdomain.xml"); socket.connect("http://90.20.233.143", 2030); 

now when im start connection ... have got problem security.loadpolicyfile

im getting on java server :

java.net.socketexception: connection reset 

and in client as3 (in french):

connexion au serveur.... vous etes connecté au serveur

avertissement :la balise non valide est ignorée pour le domaine 'http://90.20.233.143' dans le fichier de régulation présent à http://90.20.233.143:82/crossdomain.xml

socket error: [ioerrorevent type="ioerror" bubbles=false cancelable=false eventphase=2 text="error #2031: erreur de socket. url: 90.19.160.185"] // sur cause "connection reset" on java

my code in crossdomain.xml :

 <?xml version="1.0"?> <!doctype cross-domain-policy system "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy>     <allow-access-from domain="http://90.20.233.143/" to-ports="*"/>     <site-control permitted-cross-domain-policies="all" /> </cross-domain-policy> 

i dont know problem ...

it's http server , http://90.20.233.143:82/crossdomain.xml , path of crossdomain.xml.

the client can read xml said "marker" isnt good, ignore marker ("balise" in french). plan open port 843 on http server ? or java server ?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -