Professional Web Applications Themes

Can't connect to server remotely, connects fine locally - Macromedia Flash Flashcom

I've got an extremely frustrating problem that I can't figure out. I have a simple application to test the connection to the FMS 2 server. If it can connect it basically just says "Connection Successful", if it can't connect "Connection Failed". It's named 'FMStest' and I have created a folder by that name in the 'applications' directory within the FMS2 directory. The local version connects successfully and shows as connected in the management console--the connection string I'm using locally is: rtmpNow = "rtmp:/FMStest"; The remote connection fails everytime--I upload the published files to our webserver and access the created html ...

  1. #1

    Default Can't connect to server remotely, connects fine locally

    I've got an extremely frustrating problem that I can't figure out. I have a
    simple application to test the connection to the FMS 2 server. If it can
    connect it basically just says "Connection Successful", if it can't connect
    "Connection Failed". It's named 'FMStest' and I have created a folder by that
    name in the 'applications' directory within the FMS2 directory. The local
    version connects successfully and shows as connected in the management
    console--the connection string I'm using locally is:

    rtmpNow = "rtmp:/FMStest";

    The remote connection fails everytime--I upload the published files to our
    webserver and access the created html file. the connection string I use for
    the remote connection is:

    rtmpNow = "rtmp://my.domain.com/FMStest"; //domain changed for security
    reasons

    Here is the full code:

    var nc:NetConnection = new NetConnection();
    var rtmpNow:String = new String();
    rtmpNow = "rtmp://my.domain.com/FMStest"; //changed for privacy

    nc.onStatus = function(info){

    trace ("Level: "+info.level+" Code: "+info.code);
    trace(code.list);
    connect_txt.text = info.code;
    if(connect_txt.text == "NetConnection.Connect.Failed"){
    stat_text.text="Status: Not Connected";
    status_text.text = "Connection to "+rtmpNow+" failed"+" Level:
    "+info.level+" Code: "+info.code;
    }
    else{
    status_text.text = "connection successful";
    stat_text.text="Status: Connected!";
    }
    };

    nc.connect(rtmpNow);
    stat_text.text = "Status: Connecting";

    ////////////////////////////////////////////////////////////
    We've checked all the firewall and other configurations, I've tried all
    variations of the connection string (including using the IP address) No luck.
    Any ideas?



    s_brett Guest

  2. #2

    Default Re: Can't connect to server remotely, connects finelocally

    crossdomain? I haven't gotten far enough in my development to try connecting to a remote server so I don't really know, but I know connecting to other services requires a crossdomain file.
    pauldecoursey Guest

  3. #3

    Default Re: Can't connect to server remotely, connects finelocally

    Is the domain that the flash client is loaded from the same as the one for FMS?

    From your client machine, can you telnet to the FMS server port 1935?
    TrickyFishy Guest

  4. #4

    Default Re: Can't connect to server remotely, connects finelocally

    Both the webserver and client are on the same domain as the FMS. I can't
    telnet to it, but I can connect to it through the FMS Management Console. This
    is on a university network, but the network admin has doublechecked the
    firewall configuration several times. Is there anything in the FMS
    configuration files that might be the culprit?

    s_brett Guest

  5. #5

    Default Re: Can't connect to server remotely, connects finelocally

    If you get a "Connection failed" from typing "telnet my.domain.com 1935", you
    have a connection problem. Try running the client from different sites
    (starting from the server itself) to identify the component that's blocking the
    connection.

    You can try running the server on more ports than 1935. Try port 1935 and port
    80 with RTMP and RTMPT.
    To do so shutdown your server and edit the ADAPTOR.HOSTPORT entry in fms.ini.
    You may have to disable your webserver to avoid port conflicts. Then start FMS
    again and retry. Then check the log files. Best is to have a tail on
    access.00.log

    mm_patrick Guest

  6. #6

    Default Re: Can't connect to server remotely, connects finelocally

    When you are talking about domains--do you mean Internet domains or application domains?
    s_brett Guest

Similar Threads

  1. Can't connect to server remotely, connects finelocally
    By s_brett in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: August 9th, 08:56 PM
  2. Streams locally but not remotely, firewall?
    By mtg169 in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: July 18th, 03:38 PM
  3. Runs locally, but cant get to it remotely?
    By bbenham in forum ASP.NET Web Services
    Replies: 1
    Last Post: February 28th, 03:53 AM
  4. Replies: 0
    Last Post: August 6th, 06:53 PM
  5. Different behavior locally vs remotely
    By Raghu Rudra in forum ASP.NET General
    Replies: 0
    Last Post: July 21st, 04:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139