Skip to main content
Participating Frequently
November 6, 2006
Question

fms doesnt work when i give my external ip

  • November 6, 2006
  • 18 replies
  • 4195 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

    Participant
    February 8, 2007
    Also thank you to Bill Sanders for the application in the above topic that is being used for this learning example
    Participant
    February 8, 2007
    Could it be possible that my internet provider is blocking does ports?
    Will contact them...
    Participant
    February 8, 2007
    http://myinteryou.net/bill/TestStateButtons.html

    I cannot seem to get this to record and I think it is the rtmp address. I did the above things like in the adaptor.xml file and It will not work.
    what is the deal, MAN, this is a lot of hours. my brain is tired please help also. it is almost there I can feel it, it just needs to commect to the FMS server from the remote server WHY! I did put the allow web with IP address in the adaptor.xml file
    Inspiring
    February 1, 2007
    ummm there isn't a problem with fms configuration it seems to me that "walmart routers" hate opening the FMS ports for some reason unknown to me I tried to get mine to work for two days and couldn't get it done finally I unplugged my router and connected directly into the modem and everything worked fine....this really wasn't a problem for me becuase I run a firewall and intrusion detection software which has the same functionality as the router including NAT.
    Participant
    February 1, 2007
    I will test it tomorow to link a laptop directly to my desktop and if that isn't working... i don't know what will
    bolizAuthor
    Participating Frequently
    November 7, 2006
    unbelievable!!!
    thank you so much!!
    Patrick you did it!! you are great!!
    Participant
    November 14, 2006
    quote:

    Originally posted by: boliz
    unbelievable!!!
    thank you so much!!
    Patrick you did it!! you are great!!


    Can you post what you did to solve the issue? I am having the same issue here. I traced the problem to be a connection issue, but don't know where/what to do to solve it. I disabled Windows Firewall and still won't work. I tried using "rtmpt" and get connection failed.







    Participant
    January 30, 2007
    quote:

    Can you post what you did to solve the issue? I am having the same issue here. I traced the problem to be a connection issue, but don't know where/what to do to solve it. I disabled Windows Firewall and still won't work. I tried using "rtmpt" and get connection failed.


    Same probleem here, turned of my XAMPP uploaded the tester a webserver and tried to connect to rtmp://myip/myapp
    But i dind't even get a netconnection.failed

    Windows FireWall is of and FMS is going over 1935 and 80

    I'm lost...
    bolizAuthor
    Participating Frequently
    November 7, 2006
    hi,
    after trying testing your code i am getting:

    ** NetConnection onStatus
    level : error
    code : NetConnection.Connect.Failed

    when i am run this with my ip 89.0.146.191
    i am locally transmitting video and i see that it is record in the admin panel
    but when i try to run boazclient i am getting that error massage
    you can download the file i am using here
    http://www.secure.telemz.co.il/boazclient.html
    and see the error ( it takes time to connect to my ip this is home computer)
    what i can do next?
    Participant
    November 7, 2006
    I see you....
    November 7, 2006
    Hi TheOnly,

    please give us more details about what the issue is.
    It's advisable to create a small test client that gives you more verbose error messages about what exactly is going wrong - I've just sent out the same code to Boliz and anonymized it to post this in public so you can incorporate this into your code if you haven't already done so. Please also check the devnet on better code on NC handling - the following is basically a quick hack ;)


    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp://yourhost/yourapp");
    var subscribe_ns;

    // when the NetConnection fires a status event, handle it;
    // i.e. instantiate the NetStream when the connection succeeded;
    // handle the error if not . That way you make sure that the netstream is only initialized when a connection has been
    // established.
    my_nc.onStatus = function(info) {
    // put in a TextArea component and call it trace_txt.txt to print out trace messages in your test client
    // later, you may want to put in a more sophisticated solution with
    // functions to handle different success and error events,
    // e.g. re-connect attempts.
    trace_txt.text += "** NetConnection onStatus" + newline;
    for(var p in info) {
    trace_txt.text += " " + p + " : " + info

    + newline;
    }
    if(info.code == "NetConnection.Connect.Success") {
    // when connection is successful,
    // create a stream to playback.
    createStream(my_nc);
    }
    }
    function createStream(my_nc) {

    subscribe_ns = new NetStream(my_nc);

    // my_video is a Video component on your stage
    my_video.attachVideo(subscribe_ns)
    subscribe_ns.play("sample_flv_movie");

    subscribe_ns.onStatus = function(info) {
    trace_txt.text += "** Stream onStatus" + newline;
    for (var prop in info) {
    trace_txt.text += " " + prop + " : " + info[prop] + newline;
    }
    // sample code for buttons
    if(info.code == "NetStream.Play.Stop") {
    // play_status = "stop";
    //play_btn.label = "Play Video";
    }

    if(info.code == "NetStream.Play.Start") {
    // play_status = "play";
    // play_btn.label = "Pause";
    }
    }
    }

    Participant
    November 7, 2006
    I must be missing something....i grabbed the code you posted, changed the rtmp address and this: subscribe_ns.play("test.flv");
    I named my flvPlayBack component my_video yet I see no output at all in the output window. I also created a text box called trace_txt.txt and nothing appears in there either....

    where am I wrong?

    Thanks for your help on this.
    Participant
    November 6, 2006
    having the same issues here....works great internally...nothing on the external IP over port 80. The FMS is on its own box and runs over port 80 to get past our FW
    November 6, 2006
    For troubleshooting you should configure FMS to work on port 80 and also try with rtmpt. There still may be something blocking rtmp traffic somewhere.

    Also, it would be wise to extend your client to be more verbose on the errors, are you familiar with this?
    bolizAuthor
    Participating Frequently
    November 6, 2006
    where i need to change the port ? in the server.xml in the client and where alse?
    my iis configure on this port is it going to work this way? i need to make a virtual folder to the application form the iis this way?
    quote:

    more verbose on the errors
    - by using fault events and handlers, yes i will add them.
    to change to rtmpt protocol i only change the rtmp to rtmpt everywhere?
    thanks
    Boaz
    November 6, 2006
    No, IIS is in no way related to Flash Media Server - actually the presence of IIS may be a problem. FMS is a streaming media server, not a web server. The best is to shut IIS off entirely or have it run on a port which is not used by FMS at all.

    There are two ways to edit the ports:

    1. the quick & easy way (if you haven't touched the Adaptor.xml yet and if you want to be able to change this back quickly)
    go to FMS.ini and find this line:
    ADAPTOR.HOSTPORT = :1935
    (should be line 66)
    to
    ADAPTOR.HOSTPORT = :1935,80

    2. The better way (= editing Adaptor.xml)

    To change the ports, go to your Adaptor.xml (located in FMS_ROOT/conf/_defaultRoot_) and edit this line (around ln 42)
    <HostPort name="edge1" ctl_channel=":19350">${ADAPTOR.HOSTPORT}</HostPort>
    the best configuration (performance-wise) if you want to run on multiple ports is to assign internal ports for each of the communication ports, so replace the above line with:
    <HostPort name="edge1" ctl_channel=":19350">:1935</HostPort>
    <HostPort name="edge2" ctl_channel=":19351">:80</HostPort>
    (in that case the setting in fms.ini will be ignored - I usually cross-comment this in fms.ini)

    Please note that the HostPort name and ctl_channel parameters need to be unique. Once you've made either of the changes, please restart your server and watch the log files. If your server responds on both ports, you're doing fine.

    Let me know how this goes.


    By the way - this is probably a good time for you to check out flashmediaserver_managing.pdf in the documentation directory ;)