Skip to main content
Participating Frequently
November 6, 2006
Question

fms doesnt work when i give my external ip

  • November 6, 2006
  • 18 replies
  • 4193 views
hi,
i installed FMS 2 and find it very easy to record and publish video steam, it all works fine on my local computer.
when i open the ports 1935 in my router and open the fire wall to it i am still unable to contact to the server
from the web, i insert the right ip (from whatismyip) in the client app and tried to connect via rtmp to my computer
...nothing!!! localy it works!! remote no!!
please i need your help!!
    This topic has been closed for replies.

    18 replies

    Inspiring
    March 11, 2007
    have you read my other posts on the subject? its not a configuration problem its the fact that you have FMS and a webserver running on the same computer...get two computers one for FMS and one for your webserver.
    Known Participant
    March 11, 2007
    I have two computers, my webserver is somwhere in the countryside of England and my Server is in a small room in my house lol.

    But still i have no success :(
    Known Participant
    March 13, 2007
    Hmm, having looked at my router logs it seems that the server is dispatching the information back from the server to a random IP. Anyone got any ideas? presumebly this could be an error within the actionscript.

    function initSharedObject() {
    main_nc = new NetConnection();
    main_nc.onStatus = function(info) {
    if (info.code == "NetConnection.Connect.Success") {
    drawing_so = SharedObject.getRemote("drawing", main_nc.uri, true);
    drawing_so.onSync = function(list) {
    for (var n in list) {
    var line_obj = this.data[list.name];
    draw_mc.moveTo(line_obj.x1, line_obj.y1);
    draw_mc.lineTo(line_obj.x2, line_obj.y2);
    }
    };
    drawing_so.connect(main_nc);
    } else {
    trace("ERROR: " + info.code);
    }
    };

    main_nc.connect("RTMP://xx.xxx.xxx.xxx/app/drawing");
    }
    Known Participant
    March 10, 2007
    grr,

    i have no idea what is not working, i've altered the neccessary parts from what i can tell in the .xml files,

    my port forwarding seems to be working but nothing is being detected by the server itself.

    hmmm
    really needing help now guys and gals

    anyone got any other ideas??? or maybe some .xml sample files :D

    thanks
    Andy.
    Inspiring
    March 10, 2007
    open port 433
    Known Participant
    March 10, 2007
    I opened 433 no sucess, im now thinking there must be somthing wrong in my XML files, anyone got any tutorials to hand or samples for me to cross check?

    thanks.
    Known Participant
    March 9, 2007
    right well i tried to use the original 19350 port and opened that on my router.


    *sigh*

    didn't change anything its stil broken.

    Gona try as you did reinstalling the whole server.

    Also a quick clarity question, im right in thinking i only need to have my swf on my site ?

    ill post when it all goes belly up again

    hehe
    Known Participant
    March 9, 2007
    Right well, im having the same problem......

    I've altered the adaptor XML and i still can't connect. - i changed the port from 19350 to 1935.
    I've opened port forwarding etc. on my router.

    I've tried rtmp:// and rtmpt://

    Both with no success.

    main_nc.connect("RTMP://**.***.***.***/drawing");

    *= my ip address :P

    So any further ideas??


    Thanks
    Andy.
    Participant
    March 9, 2007
    You know, after i had posted my solution, I ended up having the same problem the next day. Weird!!! So, i unstalled the FMS and downloaded another copy of the FMS and did the re-install all over again. (Touch-wood) everything has been working fine since then!
    my current Adaptor.xml has the following line and it works fine.

    <HostPort name="edge1" ctl_channel=":19350">${ADAPTOR.HOSTPORT}</HostPort>

    One thing i do remember is that, when the installation is finished, the pop-up window that says, do you want this services to automatically start at the computer start-up time... well let the services start automatically. Also make sure that the ip address you are using matchs with the address given when you do the ipconfig command in the DOS window (start -- run --cmd window)
    Hope it helps. Good luck.
    Inspiring
    March 2, 2007
    hey remember though that a user might not connect remotely if they are blocking port 1935 with their firewall and your FMS server and webserver are both trying to use port80....I'd definately sniff my connection to see what ports FMS is actually using to connect remotely.......what you have posted above is definately good though ....thats what was wrong on my end too......i must have been blind not to have realized it myself!
    Inspiring
    March 2, 2007
    good stuff to know I'll add it to my posts !
    Inspiring
    March 2, 2007
    you do know that rtmp:/(single slash) ......is localhost and rtmp:// (double slash)....is remote host right .......in the code you posted above your rtmp connections only have one slash.
    Participant
    March 2, 2007
    Thanks for all the help. I have actually resolved the problem!!!! There was nothing wrong in my rtmp syntax, etc. I went into the conf/_defaultRoot_/Adaptor.xml file and all of a sudden i noticed that in the <HostPort name ... tag, the port address was 19350 instead of 1935. I took the zero off at the end and BINGO!!!, everything works locally and remotelly!

    here is the line i have now:

    <HostPort name="edge1" ctl_channel=":1935,80">${ADAPTOR.HOSTPORT}</HostPort>


    Hope this helps other folks as well. Thanks to user calmchess333, who attempted to help. Appreciate the help.
    Inspiring
    March 2, 2007
    I finally have answer to all of you who are seeking this question.


    When the Flash Player encounters the connect() method, it attempts to connect to your FCS following a very specific pattern. It first attmpts to connect over port 1935, then port 433, then port 80 and then it automatically attempts to tunnel through by sending rtmp data over http also called RTMPT it turns out the automatic sequence of attempts is fine for many situations however you may find some users can't make a connection (well , the NetConnection can't) because their firewall blocks data from traveling through port 1935. If those users can connect to any website surely they can use port 80 .And even if their setup blocks rtmp surely they can use RTMPT over port 80 because its really just plain http ...you might think the final attempt by flash player RTMPT on port 80 to be failsafe however the problem is that if you are running your webserver on the same machine as FMS then they can't both use port 80 at the same time....a perfectly legitimate solution is to use to computers one for the webserver and one for FMS ......two computers probably means you need to specify the domain in your rtmp (rtmp://mydomain.com/video).

    To force the flash player to try to connect through a specific port other than the defaults as specified above.....write rtmp as ....my_nc.connect("rtmp::8500/mydomain.com/video);

    FlashMX2004 by Phillip Kerman
    Participant
    March 1, 2007
    I have installed the developers version of FMS on my home PC and I have developed small application from the various tutorials. Everything works fine when using it locally. My problem is exactly as described in this thread to this point. The connection is failing when connecting from a flash client running on external web server! i have checked and double-checked the settings and different ways to use the rtmp: and rtmpt: i have even put to echo the error messages. When trying to connect from external site always getting: NetConnection.Connect.Failed

    I do have a wireless router installed on my local PC where the FMS server is. I have tried editing fms's xml files (only the allow tags), restarting the server, etc. and everything else under the sun!! PLEASE HELP!!! spent many days on this!!
    I have not seen many others posts on this type of problem....
    Inspiring
    March 2, 2007
    I finally have answer to all of you who are seeking this question.


    When the Flash Player encounters the connect() method, it attempts to connect to your FCS following a very specific pattern. It first attmpts to connect over port 1935, then port 433, then port 80 and then it automatically attempts to tunnel through by sending rtmp data over http also called RTMPT it turns out the automatic sequence of attempts is fine for many situations however you may find some users can't make a connection (well , the NetConnection can't) because their firewall blocks data from traveling through port 1935. If those users can connect to any website surely they can use port 80 .And even if their setup blocks rtmp surely they can use RTMPT over port 80 because its really just plain http ...you might think the final attempt by flash player RTMPT on port 80 to be failsafe however the problem is that if you are running your webserver on the same machine as FMS then they can't both use port 80 at the same time....a perfectly legitimate solution is to use to computers one for the webserver and one for FMS ......two computers probably means you need to specify the domain in your rtmp (rtmp://mydomain.com/video).

    To force the flash player to try to connect through a specific port other than the defaults as specified above.....write rtmp as ....my_nc.connect("rtmp::8500/mydomain.com/video);

    FlashMX2004 by Phillip Kerman
    Participant
    March 2, 2007
    Thanks for the detailed explanation. Unfortunately it did not still work!!
    Let me explain my landscape and perhaps it may trigger something in someone's mind.

    i) I have an cable internet connection (from ISP) to my Router. (The router is a wireless-N Broadband router model WRT300N).

    ii) From the router i have a direct cable connect to the desktop PC. On this PC, I have installed the FMS2. All my test applications work properly when i am doing the testing from this PC. For example, I use rtmp:/livecast to test a webcam conferencing test appliaction (swf file). rtpmp:localhost/livecast also works, rtmp:1935/livecast also works, etc. livecast being my test application. I have a connect to address text field into which i enter the rtmp address - so i do not have to keep recompiling my swf file!
    (Please Note: there is NO webserver running on this PC only FMS2). When i do ipconfig, i get an IP address xxx.xxx.x.100 (xxx to mask my actual address)

    iii) I have a notebook, which has a wireless card. (IP address xxx.xxx.x.101).
    I have copied the same swf file to my notebook which i used on the PC. There is NO webserver or FMS2 running on this Notebook. When i run the copied over swf file and i use the various ways of entering the rtmp and address in the connect to address field, i always get NetConnection.Connect.Failed

    So now my testing is all within my home network and does not even attempt to use an external website! just locally connected systems on the same wireless network. If it can work in this scenario, then i am confident that if and when i park my swf file on an external website, the home PC will be able provide the streaming service. Also, if it works in the scenario just described, i will be able to develop the full application and then get hosting for theFMS services.

    I really appreciate any help with this. It is driving me NUTS!!!!