[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-09-23
3
Medium Priority
?
252 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
mrdilliard earned 500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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 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.
Suggested Courses

656 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