Xml Socket connection fails loading it from an Http Url

Posted on 2005-04-14
Medium Priority
Last Modified: 2010-04-03
Dear Experts,

I have a client chat application I developed in Actionscript that connects to a java server using XmlSocket.

The application Works Fine when I load the swf from the flash player or if I access it from my browser using a local network url like \\Myserver\chat\mychat.swf   BUT... when I try to load it using an http url like http://myServer/chat/mychat.swf 

The XmlSocket can't connect to server, it just rise the .onConnect property with false.

Can any1 help me out PLZZZZZZ??

Thx in Advance,
Luis Rinaldi.
Question by:luigidenaro
LVL 27

Expert Comment

ID: 13788072
You should care about firewall settings, and the port which the socket connets to. Do you use the port (which should be allowed to be open) number in the connect method?

Author Comment

ID: 13788232
I just solved the problem leaving the CONNECTION IP="" (then the xmlsocket connects to the machine where the swf was loaded), Im sure this is a security problem from the flash IE plugin... The same happens with applets (u can't connect to a java server if the applet isnt in the same server, the only way u can do it is using a port redirector)

With this swf I tried to connect to the chat server using the server IP, localhost, and no1 worked trying to load the swf from an Internet Explorer, but when I tried loading the swf from the flash player and the Server IP, it worled perfectly.

Thx anyway.


Accepted Solution

DarthMod earned 0 total points
ID: 15659520
PAQed with points (500) refunded

Community Support Moderator

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question