Flash :: Can't Connect To Server With AS3.0 XMLSocket
Feb 7, 2010
I have a server that I have written in Python and I'm trying to connect to it via Flash's XMLSocket. I know for sure that this server is working properly as I have used it successfully with multiple non-Flash client applications. For right now, I just want to connect to the remote server with an SWF residing on my local disk. From what I understand, this means that I do not need a security policy file since the SWF is not in another domain. I have also confirmed that the security sandbox property of the file is set to local-trusted, so the SWF should be able to connect to servers and retrieve data from them. Here's the important code from the AS file:
I have a Flash client that I want to connect to a server. Both are using localhost and port 50000 so there shouldn't be any cross-domain problems. I also set Access Network Only in the publishing settings. When I call the XMLSocket connect, the server seems to get a new connection. But, the XMLSocket.onConnect callback is not called with success=true.[code]...
I have two software to create with AIR: a server and a client. Both with AS3 and AIR.I want to avoid having a big architecture with Remote Shared Object, or using BlazeDS, or having to set a Java / Python / ... server in the middle.In order to avoid having to parse socket data in the server and in the client side, I thought about using XMLSocket on the client side: the data arrives in a way which is already parsed by the Flash framework.However, when I use this XMLSocket with the AIR ServerSocket, the "connect" event returns me a raw Socket on the server side. So I have to manually manage the XML data on the server side.
Is there a way to also use an XMLSocket on the server side to communicate with the client? A kind of trick to convert the returned Socket into an XMLSocket?If there is an AS3 library which manages that, I did not find it.
I have a perl socket on my apache server that correctly takes input from sockets and sends it back out to every socket connected to the perl socket. I have tested the perl socket, and it works correctly. When I launch the Flash in the IDE, as a flash program, it functions correctly with the perl socket. However, when I try to launch the Flash in a Browser on my apache server, it tells me it is unable to connect to the server.However, I am seeing from feedback from my perl socket, the flash connects for about a half of a second, and thats it.
What could be the problem, do I have to include code in the flash to allow XMLSockets to connect in a browser as well? Is there certain things I need to do with my apache server to make it work?
Also if I 'Preview as HTML' from Adobe Flash CS4, it does not connect.
One server - is streaming server with Flash Media Interactive Server 3.5that host the application with asc files in FMS application directory.Second server - is the IIS web server that host thehtml,aspx,swf etc.. files.So basically i heve swf file on one server that have to connect to live streaming via rtmp on different server with different ip address.I did not find any clear explanation on this crossdomain rmtp issue.ys only HTTP can use crossdomain.xml policy filebut not rmtp.So what policy security procedure need to be done in order to enableswf file hosted on one server to connect and show rmtp live cam broadcasting from another server?
I just had the Adobe Flash Media Server Demo version installed on our server, not my localhost. I'm also using Adobe Flash Media Live Encoder for the encoding. What I don't understand is what will the correct FMS URL be? I currently have Red5 installed and it's working just fine and I can understand what that URL is.... I'm just not sure what the URL would be for the FMS. I had the tech at the hosting company do the install
I installed the Flash Media Server 4 and it works fine. However I uninstalled it from the control panel and reinstall it and it is no longer working now. The error i get in the server start screen is
"We are unable to connect to the network. We apologise for any inconvenience caused."
I've successfully installed Adobe FMS 4.5 and using FME 3.2 to stream. I can make the connection to live.stefanientertainment.com and see the demo page and run all the bitrate tests. When I go to Interactive mode and put in the Server address: rtmp:/live.stefanientertainment.com/live and the stream: cameraFeed, I get "Error: cannot connect to Flash Media Server! Error code:NetConnection.Connect.Rejected". Any ideas here. I've looked thru a ton of documentation and everything looks correct.
I'm trying to get an external script to communicate with an application instance running on my Flash Interactive Media Server installation. I've got the following server side actionscript in my AppStart():
[code]...
The connection to an open socket on the localhost, port 16005 works fine, but when I try to write some xml to the socket that I accepted the connection on (running on the localhost), I never seem to get the onXML or onData callbacks on the server application instance. One question that I had was regarding the NULL byte. If the FMS application doesn't not receive the NULL byte, does that mean the callback won't happen? If so, can someone tell me how to take something like a Python string and *add* a NULL byte so that the FMS will invoke the proper onXML or onData callback when this data is sent?
I've designed a flash [as2 php xmlsocket] chatroom , it works fine in localhost but i don't know how to run on real website server.I've uploaded the files but when i run the flash it can't establish a connection.What server requirements i need for xmlsocket?
We are currently in the process of trying to connect a c# server from a flash app. This hasnt been a problem so far - we have simply used the Socket class.We now have a requirement to encrypt the stream using SSL/TLS. This is no problem in c#, but much more problematic on the flash side. So far we have found two options: As3crypto lib, and AIR 2.0 SecureSocket. However, neither option has proved to be successful.
As3Crypto - TLSSocket
Using this method when we execute the code, the server throws an exception - this appears to be due to As3Crpyto's PARTIAL support of TLS.
AIR 2.0 - SecureSocket
We are currently using the latest Flex 4 SDK. We have imported AirGlobal.swc to alllow us to create a SecureSocket in a similar manner to the TLSSocket. The code builds but does not run - some File Not found error or something - probably because SecureSocket is not found in the runtime. I assume this is because AIR is intended for desktop applications rather than apps embedded in a browser.
So, now we're stuck. We have the option of encrypting the data instead using some PGP algorithm available in the As3Crypto lib. However, we would much prefer to encrypt the stream using something like TLSSocket or SecureSocket.
do I need a server to connect two flash movies in a LAN? Can I just do it in flash or do I have to use a third programm to let two flash movies on two machines communicate.
there is an app that has been finished (i hope) and it seems to work ok, this flash loads about 1Mb of flash app, then loads some stuff from the server via xml, generated through a script. as i said, it works ok in some computers, but somebody tells me that in other devices, the flash loads fine, but it gets stuck while loading from the server (it wont go further than the splash theat says 'loading contents'). Since is flash, i assume it is computer independent (it is not like the html, where each device may chow it different according to browser and setup; since is flash it will show and load just as the flash would load everywhere else); but as it seems it gets stuck right when loading the xml, after the flash has loaded (the flash loads the xml from the server), what may be causing this? is there any 'flash option' that may be interfering the flash from loading the xml content?
Is it possible to connect to a SSH server through a Telnet connection?I am trying to connect to an SSH server from Flash, but there is no OpenSSH implementation available in ActionScript. I can successfully connect to a Telnet server and execute commands.
I am not able to make any changes on the machine with the SSH server. The machine I am connecting with is running Windows XP SP3. I am willing to get whatever software for the Windows machine that is necessary.
How i can connect to FluorineFx RTMPT server? And how can i configure FluorineFx RTMPT server? Can i start FluorineFx RTMPT server without IIS installed?
I'm having trouble with a XMLSocket script in AS3. I have a java server and i'm trying to send a XML data, but the server isn't recieving anything. The most suprising is that my script worked very well a month ago, and now my IOError listener returns me.[code]
I am recording video using Flash and Red5 server and am doing it well,But when Red5 server is installed in another machine am not able to access it from my machine through LAN.am using another machine IPAddress to connect. Example:"rtmp://xxx.xxx.xxx.xxx/echo" When i access in my local machine using "rtmp://localhost/echo" it works fine.
i want to make an xmlsocket chatroom in my computer with wamp server ,i use this port and ip:
HTML Code: mySocket.connect("localhost", 1026);
and i have changed the port of wamp server to 1026 and i have puted the socket.php file in www directory of wamp.when i run the swf file in flash the connection establishing is succesfull but when i try to send data the connection will close.this is the actionscript code:
HTML Code: mySocket = new XMLSocket(); mySocket.onConnect = function(success) { if (success) {
I Have a flash player application embedded with a website working fine. Now I want to do it in iPhone, fore that i want to send request to flash server. The responses from server are realtime and used RTMP. How can I send request to Flash server from my iPhone application.
i'm trying to connect my flash application to my nodejs server running socket.io. To connect via web-browser is no problem. Now the problem, when the socket-server isn't running i get an IOError in Flash what seams alright. Now when i start the server and try to connect again, i don't get an error, but the socket-server doesn't receive a connection either?!
I have installed the FMS 3.5 Server on a separate IP from our main Apache Server: The server is running Redhat Linux 2.6.18-128.1.10.el5
FMS 3.5 running on ***.***.**.138 using ports 1935, 8080 (Admin Server using port 1111) Apache 2 running on ***.***.**.139 using port 80, 443. (several sites setup on this IP)
However, when accessing the fms_adminConsole.htm in the root directory of one of the domains on ***.***.**.139, all login attempts fail. I am connecting to localhost and using the assigned user and password set up in fms.ini. Using either IP fails as well. The FMS server is set up to listen to all hosts as no specific IPs were set.
/var/log/messages show that FMS and the Admin Server are up an running and listening: Jul 7 12:15:37 228215-web1 Service[28196]: Server starting... Jul 7 12:15:37 228215-web1 Service[28196]: Server started (/opt/adobe/fms/conf/Server.xml).
[Code]....
All other settings for FMS are default. This is my first time setting up FMS as a fresh install on a new unknown server and I am at a loss as to what settings to check or which files I may need to modify to get it to connect properly. It is a managed server is hosted by rackspace.com if that makes any difference.
I am trying to set up DVR streaming using FLME. I'm following this tutorial: http:[url]........I'm up to Step 2,
I put in the following information into the FLME: FMS URL: rtmp://222.222.222.222/dvrcast_origin Stream: mp4:sample.f4v
Then click 'Connect' , but I get an error "Failure to connect to primary server verify that your server URL and application name are valid and that your internet connection is working and retry". My server is a 32-bit windows 2007 VPS , with FMS running.I don't know if I set up the DVR Cast application correct. All I did was copy the dvrcast_origin into the installationdirectory/applications, then I started a new instance of dvrcast_origin with _definst_...Also, I am running the trial version of FMS, and DVR needs FMIS. Is there a way I can just run FMIS?
I have installed FMS 4 on a remote host - Windows 2008. When I install it, I would prefer to install the Apache server and so I did. When I open the initial web page (file:///C: [url]...), the flash content loads and the panel says it is streaming from rtmp. Seems good. But when I try to conect to this from another Flash Media Live encoder, rtmp://ip address/live, where ip address is the address of my host, it won't connect (Failur to connect to pimary server).
When I try to connect to my server with a browser - http://ip address, it loads a web page but clearly it is loading from from IIS.So port 80 is being used by IIS even though I chose to install Apache. Web servers aren't a strong suit but I've found Apache usually fairly easy.Now, I had installed FMS on my notebook and I found I could connect without trouble to rtmp://localhost/live with Flash Media Live Encoder. I figured by installing it on the remote host and then replacing localhost with the ip address, I'd be ok.
I'm willing to use IIS if that is the best thing to do. Maybe that has nothing to do with it. Getting started with these things is usually the hardest part. I've used FMS in the past but haven't had to deal with installing it.
I am using osmf1.0 and am trying to connect to a server to do multibitratestreaming from a level3 FMS instance 3.5. The protocols osmf are rtmpe and rtmpte with 3 different ports 1935,443,80. All in all creating 6 different connections. It then goes and tries to connect to either of these connections asynchoneously (50ms separation between each attempt) which means a later attempt can succeed before an earlier one. The device I am using is an htc mobile running on android (user agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16).The problem Typically, all attempts will fail (NetConnection.Connect.Failed) but occationally one does succeed but only over rtmpte but no specific port.In contrast, with Akamai it does work every single time.