Discussion:
NetConnection.Connect.Failed
Dan Barak
2008-02-23 15:15:54 UTC
Permalink
Hi everyone,

I'm trying to connect to my red5 server and get NetConnection.Connect.Failed.
When I try to connect to the localhost everything works fine.

This is the relevant actionscript code:

var server:String = "83.130.168.58";
nc.connect("rtmp://"+server+"/firstapp", "test");

If I change the server string to "localhost" everything works fine.

I changed my red5.properties file to look like this:
# HTTPhttp.host = 0.0.0.0http.port = 5080# RTMPrtmp.host = 0.0.0.0rtmp.port = 1935rtmp.event_threads_core=16rtmp.event_threads_max=32# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queuertmp.event_threads_queue=-1rtmp.event_threads_keepalive=60rtmp.send_buffer_size=271360rtmp.receive_buffer_size=65536rtmp.ping_interval=5000rtmp.max_inactivity=60000# RTMPTrtmpt.host = 0.0.0.0rtmpt.port = 8088rtmpt.ping_interval=5000rtmpt.max_inactivity=60000# Debug proxy (needs to be activated in red5-core.xml)proxy.source_host=0.0.0.0proxy.source_port=1936proxy.destination_host=83.130.168.58proxy.destination_port=1935

I opened ports 1935, 8088 and 8050 in the firewall (I also tried to shut down the firewall).
I also checked netstat and saw that ports 8088 and 1935 are being listened to.
If I look at the server log (running it as a batch file instead of a service) I can see that it gets no connection request.

I would really appreciate some help.

Thanks,

Dan

_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/
Ignacio Lopez
2008-02-24 23:18:00 UTC
Permalink
Did you try to append the RTMP port to the address? Maybe something like *
83.130.168.58* <http://83.130.168.58/>:1935 will work.
You can try to browse to http://*83.130.168.58*
<http://83.130.168.58/>:5080<http://83.130.168.58:5080/>and try some
of the demo apps to see if you can connect to the server via
RTMP
Post by Dan Barak
Hi everyone,
I'm trying to connect to my red5 server and get *
NetConnection.Connect.Failed*.
When I try to connect to the localhost everything works fine.
*var server:String = "83.130.168.58";*
* nc.connect("rtmp://"+server+"/firstapp", "test");*
If I change the server string to "localhost" everything works fine.
*# HTTP
http.host = 0.0.0.0
http.port = 5080
# RTMP
rtmp.host = 0.0.0.0
rtmp.port = 1935
rtmp.event_threads_core=16
rtmp.event_threads_max=32
# event threads queue: -1 unbounded, 0 direct (no queue), n bounded queue
rtmp.event_threads_queue=-1
rtmp.event_threads_keepalive=60
rtmp.send_buffer_size=271360
rtmp.receive_buffer_size=65536
rtmp.ping_interval=5000
rtmp.max_inactivity=60000
# RTMPT
rtmpt.host = 0.0.0.0
rtmpt.port = 8088
rtmpt.ping_interval=5000
rtmpt.max_inactivity=60000
# Debug proxy (needs to be activated in red5-core.xml)
proxy.source_host=0.0.0.0
proxy.source_port=1936
proxy.destination_host=83.130.168.58
proxy.destination_port=1935*
I opened ports 1935, 8088 and 8050 in the firewall (I also tried to shut
down the firewall).
I also checked netstat and saw that ports 8088 and 1935 are being listened to.
If I look at the server log (running it as a batch file instead of a
service) I can see that it gets no connection request.
I would really appreciate some help.
Thanks,
Dan
------------------------------
Shed those extra pounds with MSN and The Biggest Loser! Learn more.<http://biggestloser.msn.com/>
_______________________________________________
Red5 mailing list
http://osflash.org/mailman/listinfo/red5_osflash.org
Loading...