Solved

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

Posted on 2004-09-23
3
241 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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 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 select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

747 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