Skip to main content
August 13, 2007
Question

Need Help Connecting to External Server

  • August 13, 2007
  • 2 replies
  • 268 views
Hello,

I installed FMS 2.0 on a server that i have and i'm trying to connect to it from a local swf file. I have no idea how to reference the Media Server. Is it by IP? Do I need to set up something additionally on the server like in IIS? I'm totally clueless. Any advice or point in the right direction would be greatly appreciated.

Here is what i'm trying to do...


var nc:NetConnection = new NetConnection();

nc.onStatus = function (info)
{
trace(info.code);
if (info.code == "NetConnection.Connect.Success")
{
trace("connection successful");
}
}

nc.connect("rtmp://SERVERIP/simpleconnect");

how do I reference the remote flash media server?

Thanks in advance?
    This topic has been closed for replies.

    2 replies

    August 14, 2007
    You need to have an application directory on FMS - just create a subdirectory in the FMS_ROOT/applications directory, name it "test". Then change your client code to connect to
    rtmp://server.domain.com/test (or rtmp://server.ip.address/test - ip or server name should not matter)

    hth
    Participant
    August 14, 2007
    My first guess is you are probably getting a cross-domain security violation or have a firewall issue.

    In your onStatus function above, are you getting called at all?

    Can you telnet to the server on port 1935?