Skip to main content
Participant
September 9, 2007
Question

Can't connect the Flash Media Server

  • September 9, 2007
  • 1 reply
  • 613 views
hi ,I am a jackaroo in Flash Media Server
My OS is Windows XP ,I install the Flash Media Server in C:\programme files\
using fms2_console.swf i can successfully connect to the server and manage it.
I make a empty folder named 'test' in the application folder then i deploy it in cosole.

next I write actionscript in flex to connect to the server. but it always return 'connection failed'
in the server log ,it displays 'Sun 06:46:55 PM: Core (3964) socket migration failed.'
I use netstat -a ,the port 1111,1935 ,11110,19350 are open.
The code I writed looks like this

NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
public var net_con:NetConnection;
net_con=new NetConnection();
net_con.addEventListener(NetStatusEvent.NET_STATUS,connectionHandle);
net_con.connect("rtmp:/test");

private function connectionHandle(event:NetStatusEvent):void
{

if((event.info.code=="NetConnection.Connect.Success")||net_con.connected==true)
{
Alert.show("CONNECTION SUCC!!!");
}
else
{
Alert.show("CONNECTION FAILED!!!");

}
}
I don't why it cann't connect to the server
I googled it but find nothing helpful and I think you can help me .
Very sorry for my bad english .
    This topic has been closed for replies.

    1 reply

    Inspiring
    September 9, 2007
    probably the rtmp string is wrong ........

    net_con.connect("rtmp:/root_folder/swf_name");
    Participant
    September 10, 2007
    I think there is no problem in this code.
    because In the documention flashmediaserver_developing.pdf

    It's write
    "Applications are run by creating application instances. When a client connects to an
    application, the client is actually connected to an application instance. For example, a client
    connects to an application named chat_app, as the following example shows:
    nc.connect(“rtmp://myDomain.com/chat_app”);"

    I also tried rtmp://127.0.0.1/test ,but same result
    Participant
    April 23, 2008
    i also have this problem:
    (i)2581246 Core (6744) sending register cmd to edge. -

    (i)2581249 Core (6744) socket migration failed. -
    who can tell me why?