Skip to main content
Participating Frequently
January 20, 2010
Question

Facing Problems in Streaming Video over internet using FMS 3.5

  • January 20, 2010
  • 4 replies
  • 1842 views

I,am using FMS 3.5 to stream video over internet.This video will be a part of a website www.mywebsite.com . I have the webserver in my company. This webserver has the local LAN IP : 192.168.10.19 which is binded with a public internet ip 212.77.xx.xx .This website is hosted using IIS 6.0 on OS windows 2003 server with SP2

I created a swf name sample.swf from sample.flv file and gave it the rtmp address as follows:

rtmp://192.168.10.19/vod/_StreamingVideo_/sample.flv   (where _StreamingVideo_  is the instance on the server, and 192.168.10.19 is the LAN IP of server) ,and it worked fine and every one within the local company network could see the streaming video. Now i tried to replace this local address with the public address and the address became as follows:

rtmp://212.77.xx.xx/vod/_StreamingVideo_/sample.flv

After giving this public IP in the rtmp address i,am getting a message "Failed to load Flv from the address rtmp://212.77.xx.xx/vod/_StreamingVideo_/sample.flv" and as as result the video is not streamed and it only shows the progress bar on the link

www.mywebsite.com/VideoStreaming/Sample.html without loading the video. I have also checked the ports 80,1935,1111 on the server and they are open. Is there any problem with my rtmp address with public IP or any other reason ??. Please help me out in this regard because im realy stuck here.

    This topic has been closed for replies.

    4 replies

    Participating Frequently
    February 3, 2010
    Adding to my previous post this is the XML output i get when i try to access the fms admin console from local ip address i.e http://192.168.10.19:1111/fms_adminConsole.htm
    <?xml version="1.0" encoding="utf-8" ?>
    - <result>
    <level>error</level>
    <code>NetConnection.Connect.Rejected</code>
    <description>Admin user requires valid username and password.</description>
    <timestamp>2/3/2010 8:26:08 AM</timestamp>
    </result>
    but when i try to access fms admin console through public ip (http://212.77.xx.xx:1111/fms_adminConsole.htm) then it gives me the following :

    Internet Explorer cannot display the webpage.

    Any more suggestions Jay (because really ur the only one helping me out in this so far) ??

    February 3, 2010

    Unfortunately, I don't have any more advice to offer, as I'm not a network engineer. Clearly, the problem is that the network isn't translating the WAN ip/port to the LAN ip (regardless of the request type), but I have no idea why.  Were it me, I'd bounce this back to the network admin to investigate.

    Participating Frequently
    February 3, 2010

    sorry guys was busy in some other work so couldnt get back to this issue.

    The thing is that the problem is still there with no sign of being solved. However i found few new things that i tried to access the file through the following address (attached with port number) rtmp://192.168.10.19:1935/vod/_StreamingVideo_/sample.flv but it wasnt streaming even on local network but when i typed the address with port 80 i.e.  rtmp://192.168.10.19:80/vod/_StreamingVideo_/sample.flv the video started streaming. In the server's fms.ini file i have this property

    ADAPTOR.HOSTPORT = :1935,80

    i couldnt get why it is not listening to port 1935 where it is also mentioned in the "fms.ini" file. Moreover i have allowed port 1935 in the firewall settings but still no luck with the streaming thing. Any help is very welcomed bcoz i really need a solution and quick

    Participant
    January 22, 2010

    hi,

    got a similar issue test box running apache & FMS 3.5 behind FW and NATed to public IP, here I'm not even getting the player frame displayed just a black rectangle area.

    We opened only port 80 and call to streams is done using rtmpte://<PublicIP>/VOD/..../XXX.flv.

    in your case how do you call the player here I'm doing this http://<PublicIP>/swfs/videoPlayer.swf

    All this ofcourse works perfectly we using internal IPs.

    My FMS is HTTPD enableandweo overdefault Vhost/adaptor/port

    Let me know if you find any clue on how to solve this simply but silly issue.

    January 20, 2010

    Any possibility there's a firewall between the internet and the FMS server that has required ports closed? Given that your connection is successful inside the LAN, I suspect the problem is network related, not FMS related.

    Also, when you use the WAN IP, can you view the video from outside the LAN, or does it fail in all cases? I've seen situations where requests to a WAN ip from within the LAN fail, but not being a network expert, I don't know how to correct that.

    Participating Frequently
    January 20, 2010

    Thnx Jay for the reply. Yup it fails in all cases when I give the WAN IP in the rtmp address. Yes I also suspect it to be network related but my network team says that there is no firewall issue and I,am new to this FMS/video streaming thing so I, m not really sure that is the problem with my rtmp address or is it related to the fact that server is not allowing any outside access against this rtmp address. If there can be any work around it'l be great

    January 20, 2010

    Have you made any changes to the host port variables in fms.ini or server.xml? Also, is there an HTTPD server on that machine that is bound to the same WAN IP?

    Something else you can try to see if the server is reachable via the WAN ip... ask your network admin to open port 1111 as well. The FMS admin service uses port 1111, and has an HTTP api.

    Once the port is open, try hitting the admin service from your browser like so:

    http://xxx.xxx.xxx.xxx:1111/admin

    If the server is responding, you'll get an XML response. If not, you'll get a timeout. If the admin service doesn't respond, I'd bounce the issue back to the network admins to make sure the network translation from WAN to LAN is working as expected.