Skip to main content
April 13, 2007
Question

Server rejects all connections

  • April 13, 2007
  • 4 replies
  • 741 views
I have setup my server using default values. I use the free developer editon. I'm have tried sample applications from de adobe site(broadcaster and sample_videoconferance) and I keep getting:

NetConnection.Connect.Rejected

in de fm2_console i keep seeing things like: conneted:0 , connects: 5 , disconnection 5:

-I have no (windows)firewall
- I created empty directies in de application folder with the correced names
-used localhost, LAN adress, 127.0.0.1 , rtmp,rtmpt

all nothing. Red5 works fine btw ( i don't have it running right now)
    This topic has been closed for replies.

    4 replies

    April 15, 2007
    nope nothing is taking over 1935 otherwise red5 would also not work. And no i don't have them running at the same time. I installed everything on another computer and it's fine now. Big bad bug
    Participating Frequently
    May 14, 2007
    The instance name is the instance name of the application. e.g. your application can be called "hello" but an instance of it must be named. however, it is not required to provide an instance name, as FMS will automatically create an instance name for you if the URL does not contain it. The purpose of the instance name, is, for instance, to have multiple instances of a single application available, perhaps each one differering in some regard. e.g. a chat application, an instance available for each language.

    now regarding your problem, i have the same in my own log file. if you do a search on this error you will find not so much information. i was able to get my application working using the rtmpt protocol, but now, after coming back to work and booting my machine, it's not working again and i have the same error.

    things i've tried:

    1) i shut down all anti-virus and firewall applications and services
    2) run netstat -a to see what is running and what ports are being used
    3) try specifying a different port for FMS to run on (default = 1935). this can be changed via $InstallDirectory$\conf\fms.ini (in windows). Inside the file search for ADAPTOR.HOSTPORT and change the value to whatever port you want to try.
    4) try variations of the url e.g. rtmp:/ rtmpt:/ rtmpt://localhost rtmpt://localhost:1935 etc.
    5) make sure you don't have programs like netlimiter installed as this is a known app that can cause problems w/ FMS by intercepting system calls on the machine.

    If you do find something that works, please contribute to this thread as it could become valuable for others having these issues.
    April 15, 2007
    Looks lik FMS is having trouble binding to port 1935. Are you sure you don't have a firewall in the way (other than windows firewall), or another device binding to port 1935?
    April 13, 2007
    What is the server log in the admin console telling you? Since you're getting a netconnection.connect.rejected status code (as opposed to a netconnection.connect.failed code), we know the server is responding to the connection request and rejecting it, so it's not a firewall, router, or proxy problem. The connection and rejection should be traced in the live log as that happens.

    Something tells me you might have a syntax problem in your rtmp string. The string should look like this:

    rtmp://localhost/applicationName/instanceName
    April 13, 2007
    the server access and System log under the servers tab is completely empty. What do you mean with instance name in the url. I'm i supposed to put it in the url , or create an application instance manualy in the console? that sounds a bit weird.

    - access log file:

    Version: 1.0

    #Start-Date: 2007-04-13 23:43:15

    #Software: Macromedia Flash Media Server 2.0.4 r79

    #Date: 2007-04-13

    #Fields: x-category x-event date time x-pid c-ip cs-bytes sc-bytes x-sname sc-stream-bytes x-file-size x-file-length x-comment

    session connect 2007-04-13 23:43:15 4452 - 6146 6146 - - - - -

    session disconnect 2007-04-13 23:43:15 4452 - 6146 6146 - - - - -

    session connect 2007-04-13 23:43:15 4452 - 6146 6146 - - - - -

    session disconnect 2007-04-13 23:43:15 4452 - 6146 6146 - - - - -

    session connect 2007-04-13 23:43:47 4452 - 6146 6146 - - - - -

    session disconnect 2007-04-13 23:43:47 4452 - 6146 6146 - - - - -

    session disconnect 2007-04-13 23:48:16 4452 - 6338 10112 - - - - -

    - CORE LOG

    2007-04-13 23:43:15 4452 (i)2581237 Starting admin app on core (4452). -

    2007-04-13 23:43:15 4452 (i)2581238 Core (4452) connecting to admin. -

    2007-04-13 23:43:15 4452 (i)2581231 Core (4452) connected to admin. -

    2007-04-13 23:43:15 4452 (i)2581246 Core (4452) sending register cmd to edge. -

    2007-04-13 23:43:15 4452 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    2007-04-13 23:43:15 4452 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    2007-04-13 23:43:15 4452 (i)2581234 Core (4452) connection to admin accepted. -

    2007-04-13 23:43:47 4452 (w)2631008 Asynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    2007-04-13 23:48:16 4452 (i)2581247 Core (4452) disconnected from edge. -

    2007-04-13 23:48:16 4452 (i)2581233 Core (4452) disconnecting from admin. -




    - I THINK IFOUND IT :TextAsynchronous I/O operation failed (Failed to attach to completion port: De parameter is onjuist. 87). -

    What could cause this? i do have a apache webserver on the same machine , shutting it down does not help
    April 13, 2007
    I have de same problem, if i find something post it!