FAILURE TO SETUP YOUR ENVIRONMENT VARIABLES WILL PREVENT YOUR FROM BEING ABLE TO BUILD PROPERLY
Now to just build the red5 server and start it running type ant server - This will compile the code and start the red5 server listening on port 1935.
To test the server use either the samples in the "swf" directory or write your own fla to call red5 using rtmp://localhost:1935/oflaDemo as the URI.
To change the default port Red5 listens on edit the conf/red5.properties and change the property rtmp.host_port value to your desired host and port i.e. :
rtmp.host_port = 0.0.0.0:2935
and then restart the server by typing
ant server
Please direct any questions to the red5 mailing list : red5@osflash.org