Failed to Connect to primary server URL and Application name

2,529 views
Skip to first unread message

Mahesh Ch

unread,
Sep 18, 2013, 7:57:08 AM9/18/13
to red5in...@googlegroups.com
Hi

I have installed red 5 in my laptop(with windows 7 Proffesional) and Flash Media Live Encoder 3.2, am also having static IP.

After the installation have gone to services and started red service and also started the red 5 batch file.

I opened Flash Media Live Encoder and entered the FMS URL as (rtmp://mystaticip/live) and stream as myStream, when i click on connect am getting error as

PROBLEM WITH PRIMARY SERVER (Failure to connect to primary server. Please verify that your server URL and application name are valid and that your internet conncetion is working and retry.)
error.jpg

Mondain

unread,
Sep 18, 2013, 8:20:27 AM9/18/13
to red5in...@googlegroups.com
Edit your conf/red5.properties file and make sure the http and rtmp IP addresses are set like so:

# HTTP
http.host=0.0.0.0
http.port=5080
https.port=8443

# RTMP
rtmp.host=0.0.0.0
rtmp.port=1935

This will bind port 5080 and 1935 to all of your network interfaces, which should include your static IP.


--
 
---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
http://gregoire.org/
http://code.google.com/p/red5/

Mahesh Ch

unread,
Sep 18, 2013, 8:28:25 AM9/18/13
to red5in...@googlegroups.com
(# HTTP
http.host=127.0.0.1
http.port=5080
https.port=5443
http.URIEncoding=UTF-8
http.max_keep_alive_requests=-1
http.max_threads=20
http.acceptor_thread_count=10
http.processor_cache=20

# RTMP
rtmp.host=127.0.0.1
rtmp.port=1935) 

this is the code present default  and i changed it to as following 

# HTTP
http.host=0.0.0.1
http.port=5080
https.port=8443
http.URIEncoding=UTF-8
http.max_keep_alive_requests=-1
http.max_threads=20
http.acceptor_thread_count=10
http.processor_cache=20

# RTMP
rtmp.host=0.0.0.1
rtmp.port=1935 

Am I Right if any mistakes please let me know. and my static IP is 183.82.2.163

Thanks & Regards

yên nguyễn

unread,
Sep 18, 2013, 8:47:14 PM9/18/13
to red5in...@googlegroups.com
hi!
the first you creat a "live" directory in red5 ( c-program files- red5 - webapps- live) you should used default directory for conect the first ( c -program files- red5 - webapps- oflademo)
you open adobe flash media live software rtmp://127.0.0.1/oflaDemo if it connect ok, you will 
enter a rtmp://127.0.0.1/live.
wish you success.


2013/9/18 Walter Tak <wal...@waltertak.com>
http.host=0.0.0.1 ?

0.0.0.1 is certainly not valid.

Make it 127.0.0.1 or 0.0.0.0






--
 
---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Walter Tak

unread,
Sep 18, 2013, 10:23:36 AM9/18/13
to red5in...@googlegroups.com
http.host=0.0.0.1 ?

0.0.0.1 is certainly not valid.

Make it 127.0.0.1 or 0.0.0.0




On Wed, Sep 18, 2013 at 8:28 PM, Mahesh Ch <mahiwe...@gmail.com> wrote:

--

Mahesh Ch

unread,
Sep 19, 2013, 12:43:20 AM9/19/13
to red5in...@googlegroups.com
By default it is 127.0.0.1 but it doesnt work,  and i changed it to 0.0.0.0 but of no luck.
am getting the same error.

Walter Tak

unread,
Sep 19, 2013, 1:39:13 AM9/19/13
to red5in...@googlegroups.com
If you use 127.0.0.1 it only works on your local PC. So if you run Red5 on 127.0.0.1 then you have to use urls like rtmp://127.0.0.1:1935/live

But .. You need to have an application called 'live' installed. You can use oflaDemo, which is an example/demo, but you have to install it first.

Else Red5 won't do anything, just like when you install a webserver it won't show anything because there is no content (except when the webserver has some page installed like 'It Works').

Regards,
Walter





On Thu, Sep 19, 2013 at 12:43 PM, Mahesh Ch <mahiwe...@gmail.com> wrote:
By default it is 127.0.0.1 but it doesnt work,  and i changed it to 0.0.0.0 but of no luck.
am getting the same error.

--

Mahesh Ch

unread,
Sep 19, 2013, 1:42:07 AM9/19/13
to red5in...@googlegroups.com
can u please let me know how can i install the applicatiton called live.

Thanks & Regards.

Walter Tak

unread,
Sep 19, 2013, 3:25:06 AM9/19/13
to red5in...@googlegroups.com
There is no default application 'live'. You can install oflaDemo. See the docs how to do that.

http://code.google.com/p/red5/wiki/HowTo
http://code.google.com/p/red5/

Red5 isn't a product you can master in a few days. I'd strongly suggest to read the guides.

One caveat ; Red5 changed over the years and some docs might be outdated. So first read the general outlines and then search for information on the version of Red5 you are using.

yên nguyễn

unread,
Sep 19, 2013, 5:26:27 AM9/19/13
to red5in...@googlegroups.com
Hi!
 the first you must to test red5 server how to it ok yet. by web browser http://127.0.0.1:5080 when you enter "install" and  choose install "oflaDemo ". when you open (c-program files- red5- webapps- oflaDemo)
wish you success.




2013/9/19 Walter Tak <wal...@waltertak.com>

Mahesh Ch

unread,
Sep 19, 2013, 5:33:56 AM9/19/13
to red5in...@googlegroups.com
am able to check out all the demo are working in local server ,thanks alot. Am using static ip for internet connection. i have started red5 server and want to acces from some other place can u please let me know. i want to make event llive


You received this message because you are subscribed to a topic in the Google Groups "red5" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/red5interest/5yHVuBZvD30/unsubscribe.
To unsubscribe from this group and all its topics, send an email to red5interest...@googlegroups.com.

Walter Tak

unread,
Sep 19, 2013, 10:55:42 AM9/19/13
to red5in...@googlegroups.com
Use 0.0.0.0 as IP ; this will let the server bind to all IP-addresses on your server (from 127.0.0.1 to all your LAN-addresses).

Please make sure your firewall allows incoming connections to TCP port 1935 en 5080 else still nobody outside your own server/PC can connect.

Regards,
Walter

yên nguyễn

unread,
Sep 19, 2013, 9:04:22 PM9/19/13
to red5in...@googlegroups.com
Hi!
have you can connect your red5 server by static ip yet? http://your static ip:5080
if yet, you enter (c-program files - red5 -conf - red5 properties) you change ip 127.0.0.1 to your static ip then restart red5 server
After restart you enter web browser http://your static ip :5080. if ok you continous login modem to open port forward "5080" for red5 server .
wish you success


2013/9/19 Walter Tak <wal...@waltertak.com>

Mahesh Ch

unread,
Sep 20, 2013, 5:06:59 AM9/20/13
to red5in...@googlegroups.com
Hi thanks a lot for helping me out,  i could make the things but there is small problem.

Am having Red 5 Server installed in my lap with static IP am able to connect and make the video streaming live.

Now i want to connect from some other sytem which is having different ip to my server. its getting connected but am not able to see video after making it live. am getting error message (sorry for the incovienence no camera has been connected)

Is there anything else to be done regarding port opening ?

Thanks & Regards

yên nguyễn

unread,
Sep 20, 2013, 9:38:06 PM9/20/13
to red5in...@googlegroups.com
Hi!
Now did your red5 server run ok?, do you want connect from other computer to your server?.
you should to used adobe media live encode in bar primary http://your static ip:5080/oflaDemo
in bar stream "live" and choose connect
when on your server, you open web browser http://your static ip:5080, and choose "demo" continius choose "publisher" 
section name you set as same name with adsobe media live encode "live"
section localtion you enter your static ip http://your ip /oflaDemo and press connect you will see images on díplay
wiht you sucesss.


2013/9/20 Mahesh Ch <mahiwe...@gmail.com>
Reply all
Reply to author
Forward
0 new messages