June 11, 2009


Filed under: code, flash, internet, open source, tech, tutorial, web development — bardicknowledge @ 8:50 pm

Well this gave me a bit of a run around, but I have finally (I think) got it all sorted out : red5 running on windows through wamp. This isn’t really that big of a feat but it’s the first time I’ve done something like it and I’d like to explain step by step how to get it working since none of the guides I read held your hand through the whole set up.  So I will ^^

If you don’t know what Red5 is here’s a snippet from Wikipedia that explains the basic idea:

Red5 is considered as a free alternate to Adobe Flash Media Server, and supports many of the same feature sets. It has a few additional feature sets such as the ability to intercept live streams, and the ability to easily plug in other Java libraries such as Hibernate.

So, my first attempt was to use tomcat, but that didn’t work so so well, and since I have a wamp server already running I figured it would be best to use that. After some googling  I found other people that had already done this, on the  Red5 mailing list , here.

Pretty much I’m just gonna copy their nine steps and add my additional comments since their way works, it’s just a little vague though.

  1. Install wamp
  2. Create a directory named “red5-server” into C:\wamp\www
  3. Download and install TortoiseSVN
  4. right-click on C:\wamp\www\red5-server folder and click SVNCheckout
  5. enter  the url from which red5-server will be downloaded :
  6. download ant from the apache software foundation (manage dependencies for compilation)
  7. Extract ant to a folder where ever you want. Just remember it’s path since you will need to add it to your system variables later. I put it at : C:\apache-ant-1.7.1
  8. Download the JDK 6 and install
  9. Add ant and javac.exe to your system’s Path variable (right click on my computer – > Advanced – > Enviroment Variables – > Find variable Path in System Variables and edit. You need to add the path to the javac.exe which is in your JDK installation (default on xp for me : C:\Program Files\Java\jdk1.6.0_14\bin) and the bat files for ant (C:\apache-ant-1.7.1\bin) . Make sure that each variable is separated by a semi colon or it won’t work.)
  10. open a shell on C:\wamp\www\red5-server
  11. just type ant server – if ant is not found your system variables are set up wrong. If during building it says that it can’t find tools.jar where it expected the easiest solution is to find where the tools.jar file is on your pc and copy it to where the ant expects it. If at the end of the build it says it can’t find javac.exe, you either installed the wrong version of java or your system vars are set up wrong.
  12. You can install samples demo via the administration console http://localhost/RED5-server/webapps/installer/index.html

And there ya go -Red5 through your wamp installation.



  1. Hi,
    Thanks for this straight forward explanation, it was very helpful.
    I have found supporting docs and tuts for red5 a bit thin so this was very helpful.
    Just got a small problem with step 11 when you type ant server in prompt then i get “buildfile: build.xml does not exist!”
    Any ideas what I did wrong?

    Comment by geoff — September 3, 2009 @ 11:25 pm

  2. Hy,
    Sorry, I installed the JRE, not the JDK, My bad, great tutorial, all works great now. Thank you very much!! 🙂

    Comment by Geoff — September 4, 2009 @ 8:38 pm

    • I’m glad it worked for you 🙂 I’ve been looking at Red5 a lot lately but have been having a lot of problem getting my own examples to work properly with it.

      I’ve been thinking Electroserver, despite it’s high cost, may be the server I stick with.

      Comment by bardicknowledge — September 14, 2009 @ 7:55 am

  3. Hi,

    i followed the above steps, i got the ant server installed, but when i am connecting to the red5-server using http://localhost/RED5-server/webapps/installer/index.html , i am getting the error: “Error: NetConnection.Connect.Closed ” . Can any one please suggest me where did i go wrong..

    Thanks in Advance..

    Comment by charan — November 9, 2009 @ 9:17 am

  4. Hope you guys are well. Kudos on the great tutorial! got red5 installed and working. now my problem is the same as charan above. Error:NetConnection.Connect.Closed
    Trying to connect to war location.

    Any ideas? any advice would be greatly appreciated!!!

    Comment by babaman — November 11, 2009 @ 6:03 pm

  5. I get NetConnection.Connect.Failed and I’m running out of hair since I’ve been pulling it out all day

    Comment by mehpac — March 18, 2010 @ 11:18 am

  6. Guys,

    For me also the same error. anyone got the idea?

    Thanks in advance,

    Comment by Krish — May 2, 2010 @ 10:10 pm

    • i am getting the error: “Error: NetConnection.Connect.Closed ” . Can any one please suggest me what needs to be done to resolve this…. please help

      Comment by Nishant — November 6, 2010 @ 7:04 am

  7. Guys,

    I found the Solution

    your path environment variable setting should have both ant location and jdk location

    C:\Program Files (x86)\Java\jdk1.6.0_20\bin

    and try to use
    http://{ur ipaddress}/installer/

    instead of


    because, at the time of installation, I given the ipaddress of the machine not localhost
    so port is opened on {my host ipaddress}:1935 //rtmp aka red5 port number

    which is mentioned in

    You can whether 1935 is opened or not with the below commands

    netstat -an

    Please post ur comment if any update you got
    thanks all.

    Comment by Krish — May 3, 2010 @ 5:35 pm

  8. Hi Thanks for the instructions. I seem to have the same problem as the guys above regarding the connection, i have installed everthing properly but still get the same problem, when i test my connection to the server there seems to be no connection. HHHHEEEEELLLLPPPPP. thanks

    Comment by abdul-raheem — June 9, 2010 @ 7:20 am

  9. thank you very much for the instructions but please i did not understand the step number 10 (open a shell) what dos shell means

    Comment by wajdi — July 5, 2010 @ 3:48 am

  10. thank you i found the solution but when i run the shell it gives me that tools.jar not found i copy it on the expected folder and then i run it again but this time it says build.xml not found

    Comment by wajdi — July 5, 2010 @ 4:47 am

  11. Hello friends,

    i am also facing the same problem it show the error
    Net status: NetConnection.Connect.Failed
    Trying to connect to war location
    Net status: NetConnection.Connect.Failed
    Trying to connect to war location
    Net status: NetConnection.Connect.Failed
    Trying to connect to war location
    Net status: NetConnection.Connect.Failed
    Trying to connect to war location
    Net status: NetConnection.Connect.Failed

    if any one have solution please share with us

    Thanks in advance

    Comment by shailesh jai — May 5, 2011 @ 6:29 am

  12. hey what happened ? if my wamp on different drive like D: and ant apache on C: drive ..

    is this make difference ?

    Comment by Shailesh — May 6, 2011 @ 6:30 am

  13. Thanks this really helped. For those getting a “NetConnection.Connect.Failed” make sure you start the red5 server by clicking on the red5.bat in Windoze or just red5 on other platforms.

    Comment by wezside — July 25, 2011 @ 12:06 pm

  14. Hi
    I am not yet solved the connection failed issue.can any one tell me how to solve it.


    Comment by matainja — August 26, 2011 @ 4:16 am

  15. I found the solution to the problem “Net status: NetConnection.Connect.Failed.” If you are using the RC1 your server is not starting correctly due to two files. Navigate to your red5 server installation directory then navigate to the lib folder within that. In the lib folder there are two files that need to be deleted to start correctly; com.springsource.slf4j.juli-1.6.1.jar

    Once these two files are deleted you can now click on red5.bat and get a full shell readout and you will get rid of the connection problem when trying to connect to the installer.

    for more info on it go here

    Comment by paullstanley — August 30, 2011 @ 11:47 am

  16. hi
    I am using the java sdk version: jdk1.7.0_02 installed in: C:\Program Files (x86)\Java\jdk1.7.0_02
    ANT is installed in: C:\wamp\tools\apache-ant-1.8.2
    When I open a shell on : C:\wamp\www\red5-server and run the ant server
    at the end under BUILD FAILED, I get the error:
    C:\wamp\www\red5-server\build.xml:230: Error running javac.exe compiler
    Please help!!! what shoud i DO?

    Comment by Luis — December 31, 2011 @ 4:02 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: