Skip to main content
January 24, 2007
Question

connection failure with Apache

  • January 24, 2007
  • 1 reply
  • 280 views
Hi, everyone. I am a newbie at both Linux and Flash Media Server. I have set up a development version on my linux box and am attempting to establish a connection through a local network. I am testing with a simple connection script:

client_nc = new NetConnection();
client_nc.connect("rtmp://192.168.15.200/candace/room_1");

client_nc.onStatus = function(info) {
error.text = "Level: " + info.level + " Code: " + info.code; // this is returning any errors
}

Now, on the client site, the error box returns "Error: NetConnection.Connect.Failed"
On the FMS console on the server there is no sign of a connected client
In the Apache error log on the server, I get the error "Invalid method in request"
I have the firewall turned off.
When I run the script locally on the server with URI "rtmp:/localhost/candace/room_1" I do not get the error.

My guess is that Apache doesn't like the rtmp protocol for some reason and won't allow my client to talk to the FMS server. Thoughts?

Thanks!!

    This topic has been closed for replies.

    1 reply

    January 24, 2007
    Since it works locally, I'm guessing it's either a firewall issue, or a problem with the IP address you're using in your rtmp string.

    Is the firewall on the server off? You might want to chck that port 1935 isn't being blocked.

    So you know, FMS has nothing to do with Apache (separate services entirely), so that shouldn't be the problem