Can't Connect to MonaServer on my server

1,093 views
Skip to first unread message

jeff fried

unread,
Jul 29, 2015, 2:32:04 AM7/29/15
to MonaServer
The connection fails because it is timing out.  A scan of my ports shows that MonoServer is listening on all the ports listed below The clients work ok on your server which indicates no problems on the client end. The server is not behind a corporate firewall or gateway so it shouldn't be a proxy problem.   Besides I've been using 1935 (TCP) with Wowza for years without any problem.  In fact, the only thing unusual is my configuration is that the http port is 8090 instead of 80 so I don't have to shutdown Apache.  But that shouldn't make any difference as it's connecting ok via HTTP.

Here's the server log. The host is running Centos 6.6 and MonoServer was started from root.

Mona/Protocols.h[102] RTMFP server started on 0.0.0.0:1935 (UDP)
Mona/Protocols.h[102] RTMP server started on 0.0.0.0:1935 (TCP)
Mona/Protocols.h[102] HTTP server started on 0.0.0.0:8090 (TCP)
Mona/Protocols.h[102] RTSP server started on 0.0.0.0:1554 (TCP)
sources/Service.cpp[242] Application www/MonaClients/VideoPhone loaded
VideoPhone/main.lua[11] Connection from client HTTP
sources/Server.cpp[144] 1 clients
VideoPhone/main.lua[11] Connection from client HTTP
VideoPhone/main.lua[11] Connection from client HTTP
VideoPhone/main.lua[11] Connection from client HTTP
sources/Server.cpp[144] 4 clients
VideoPhone/main.lua[11] Connection from client HTTP
VideoPhone/main.lua[11] Connection from client HTTP
sources/Server.cpp[144] 0 clients

Here's the log from the Video Phone client indicating the timeout (2nd and 3rd lines appear after about 1 minute).

Connecting to rtmfp://hugbo.com//MonaClients/VideoPhone
NetConnection event: NetConnection.Connect.Failed
Unable to connect to rtmfp://hugbo.com//MonaClients/VideoPhone

I'd like to avoid going back to Cirrus so any help would be appreciated.

Thanks in advance -- Jeff Fried.

michellei...@gmail.com

unread,
Jul 29, 2015, 10:28:09 AM7/29/15
to MonaServer, clev...@gmail.com
I would check your iptables again to make sure UDP and TCP ports are open for 1935. This happened to me because I only had TCP open on 1935.

jeff fried

unread,
Jul 29, 2015, 1:44:03 PM7/29/15
to MonaServer, michellei...@gmail.com
I did read your post before posting and opened those ports, hopeful that it would solve the problem, but the problem is still there.

jeff fried

unread,
Jul 29, 2015, 1:59:40 PM7/29/15
to MonaServer, michellei...@gmail.com, clev...@gmail.com
One more piece of information.  An nmap scans for udp 1935 returns 1935/udp open|filtered unknown. I guess the next step is to track down what's filtering it.  I'm using the ConfigServer firewall if that makes any differene.

jeff fried

unread,
Jul 29, 2015, 5:07:30 PM7/29/15
to MonaServer, michellei...@gmail.com, clev...@gmail.com
I finally am able to connect.  The problem was I didn't specify the host in MonaServer.ini and it connected to localhost.  That should have been evident by the trace below.  The VideoPhone application worked but the MonaVideo did not, acting like it never made a connection just showing a black screen.  At the moment I'm not going to worry about it as the VideoPhone should cover all the functionality that MonaVideo does (except for multiple users which I don't need at the moment).  My only concern is if failure of MonaVideo is evidence of something wrong with my MonaServer build.
Reply all
Reply to author
Forward
0 new messages