Skip to main content
Participant
November 15, 2006
Question

Application only works on localhost...why?

  • November 15, 2006
  • 2 replies
  • 404 views
I followed the examples and created a live video stream test app. It works perfectly when everything is on one machine, meaning the FMS and tomcat are both on the same machine. But, when I try to access it from another machine, the other machine cannot see the live stream. I did some research on it and most of them point to be a problem with the NetConnection.connect method.

Since both apps + FMS are on the same machine, I tried

.connect ("rtmp:/apps/session");

.connect("rtmp://localhost/apps/sesson");

.connect("rtmp://machine.domain.com/apps/session");

.connect("rtmpt://ip address/apps/session"):

All of the above works when I do it from local machine. But, the other machine doesn't work?


    This topic has been closed for replies.

    2 replies

    flash_nubAuthor
    Participant
    November 16, 2006
    1. IP = LAN IP
    2. No firewall. I disabled widows firewall for the test too.
    3. Just a netgear hub which I checked to make sure it does not block port 1935.

    This is very weird. Still looking for a solution. Help appreciated. Thx.
    November 17, 2006
    Okay... let's assume your application is named testapp. You should have a directory as such:

    FMS Install Dir/applications/testapp

    Now, try these strings, where LANIP is the IP address of the FMS machine.

    rtmp://LANIP/testapp
    rtmp://LANIP:1935/testapp
    rtmp://LANIP:80/testapp
    rtmpt://LANIP:1935/testapp
    rtmpt://LANIP:80/testapp

    Also, when you try to connect from the remote machine, do you get anything in the FMS Admin console live log?
    November 15, 2006
    A couple of questions:

    1. Is the IP you're using a WAN IP or a LAN IP?
    2. Is the FMS machine firewalled, and if so, have your set the firewall to allow inbound/outbound traffic on port 1935?
    3. Is your network using a hub/switch, or a router? Some routers are a little goofy when using a WAN IP from within the network.