Solved

XML Socket connect() to a remote socket server fails?

Posted on 2004-09-23
3
242 Views
Last Modified: 2008-03-06
Hello All,
I am working on developing a flash application which uses XMLSockets
to connect a socket server.Here the server is a C/C++ application
running on a different machine.I am a newbie to flash
programming.Using Macromedia Flash MX 2004 Professional.

While testing, I hosted the flash application on a web server
(IIS)which was running on IP say 15.70.*.* network.The flash
application on getting the user name and password details in the form
submitted by the user has to connect to a server on port 5000 running
on a machine whose IP is 15.42.*.* network.

What happens is the connect() fails? But if the socket server and the
flash application runs on the same machine then it works!

The machines could be pingable and DNS lookup is also successful.We
could connect between these two machines using normal sockets(Windows
sockets).

Is there any limitation on XMLSocket for this? I checked about
cross-domain policy, but not sure whether that would help me in my
case.I am not loading or sending data using loadVars() methods.

If someone could shed some light on this, it would be really helpful.

Thanks & Regards,
Karthik
0
Comment
Question by:karthikd22
3 Comments
 
LVL 4

Accepted Solution

by:
mrdilliard earned 125 total points
ID: 12140677
Not sure the cross-domain sandbox is your issue, but just in case: System.security.allowDomain("nameofdomain.com","www.nameofdomain.com");

I'm not familiar with socket servers, but if you post what you're trying to do, I might be able to help. There could be another way to do it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

920 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

15 Experts available now in Live!

Get 1:1 Help Now