Solved

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

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

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…
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 how to load their YouTube profile onto Flash Media Live Encoder.
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.

696 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