Xml Socket connection fails loading it from an Http Url

Posted on 2005-04-14
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

    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

    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.

    LVL 1

    Accepted Solution

    PAQed with points (500) refunded

    Community Support Moderator

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    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…
    I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
    In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now