Skip to main content
June 9, 2010
Question

Flash Media Server Rejecting Connections?

  • June 9, 2010
  • 1 reply
  • 639 views

So basically, I'm simply trying to set up Flash Media Server to connect to. My code here:

var nc = new NetConnection();

nc.onStatus = function(info) {
    trace(info.code);
}

nc.connect("rtmp://127.0.0.1/firstapp/");


Gives me the following messages:

NetConnection.Connect.Rejected
NetConnection.Connect.Closed

Here's the FMS log error that I get, I searched everywhere and can't fix them, could someone help? (Path and IP starred out):

#Version: 1.0

#Start-Date: 2010-06-08 17:59:14

#Software: Adobe Flash Media Server 3.5.1 r516

#Date: 2010-06-08

#Fields: date    time    x-pid    x-status    x-ctx    x-comment

2010-06-08    17:59:09    11104    (i)2581173    FMS detected IPv6 protocol stack!    -

2010-06-08    17:59:09    11104    (i)2581173    FMS config <NetworkingIPv6 enable=false>    -

2010-06-08    17:59:09    11104    (i)2581173    FMS running in IPv4 protocol stack mode!    -

2010-06-08    17:59:09    11104    (i)2581173    Host: ****-PC IPv4: ***.***.*.***    -

2010-06-08    17:59:10    11104    (e)2631013    Failed to create listener for adaptor _defaultRoot_, IP , port 80: .    -

2010-06-08    17:59:10    11104    (e)2631013    Failed to create listener for adaptor _defaultRoot_, IP , port 1935: .    -

2010-06-08    17:59:10    11104    (i)2631174    Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4    -

2010-06-08    17:59:10    11104    (i)2581252    Registering core (11120).    -

2010-06-08    17:59:11    11104    (e)2631114    Failed to start listeners for adaptor _defaultRoot__edge1.    -

2010-06-08    17:59:11    11104    (e)2791225    Failed to start edge : _defaultRoot__edge1     -

2010-06-08    17:59:11    11104    (i)2581250    Edge disconnected from core (11120).    -

Can anyone explain why this is happening?

    This topic has been closed for replies.

    1 reply

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    June 10, 2010

    Looks like port 80 and 1935 are being used by some other services. Try to shutdown those services if you are not really going to use. Or change their ports to something other than 80 and 1935. If you really cannot change the port those ports, you will have to change the ports in FMS.

    Go to $InstallRoot\conf\fms.ini and look for "ADAPTOR.HOSTPORT" variable. Update it like....

    ADAPTOR.HOSTPORT = :<port which can be used by FMS>

    For example: ADAPTOR.HOSTPORT = :1999

    Then your connection url is going to be "rtmp://your_server_name:1999/your_app_name". You will have to explicitly mention the port in your connection url.

    Regards,

    Janaki L