Skip to main content
Participant
November 23, 2009
Question

Cannot establish NetConnection - raw TCP/IP connectivity has been established

  • November 23, 2009
  • 2 replies
  • 748 views

I have FMS 3.5.2 installed on a VMWare CentOS image running under OS X.

I have the CentOS IP mapped to the host "fms.vm" on both the host (OS X) and CentOS machine and can access the FMS Admin just fine, either via a browser on OS X or a browser on CentOS. No problem there.

I have a basic "helloworld" server-side app and can use the fmscheck to verify connectivity:

tools/fmscheck --auser xxx --apswd xxxx --app helloworld --host localhost

#Fields: date    time        x-event                             x-sname

2009-11-23     11:28:01     Connect                              rtmp://localhost:1935/helloworld

2009-11-23     11:28:01     NetConnection.Connect.Success        Connection succeeded.

2009-11-23     11:28:01     Program complete successful  

From OS X and I can telnet to the machine on port 1935 and get an open socket (vs a connection refused which means connectivity cannot be established).

At this point I have guaranteed that raw TCP/IP connectivity can be established. Right?

Yet a basic client app with:

nc.connect("rtmp://fms.vm/helloworld");

Yields:

Connecting...

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Connect.Failed

at helloworld/connectHandler()

I at a loss. Any ideas?

Thanks in advance.

/Cody

    This topic has been closed for replies.

    2 replies

    Participant
    November 24, 2009

    I answered my own question.

    The solution was to place the generated SWF under a webserver (with an appropriate crossdomain file) - when the SWF was executing in that environment then the connection was OK.

    Previously I had been trying to run the SWF straight from Flash via "Test Movie", which I guess has different security contexts.

    This also explains why it wasnt a networking issue at all (I could telnet to 1935 all day long) and it was more of an application-level security issue.

    Participant
    November 23, 2009

    Just to weed out issues with CentOS. I installed FMS on a Windows XP image successfully, can access the Admin Console and all. I tried running the same client app, this time connecting "localhost" (trying to weed out any networking issues). Same problem.

    Participant
    November 23, 2009

    Well, I have gotten the FMS on Windows to work via my basic client app (via localhost in the NetConnection call). Taking the same SWF and specifying the external IP of the Windows machine doesnt work.

    So I am kind of back to square one.

    I made sure that the default Adaptor is bound to any IP (using ":1935,80" in the default Adaptor.xml HostPort tag). So FMS should be bound to all network interfaces.

    Just to clarify: FMS is running in "development" mode. Does that mode prevent external connections?