Skip to content

HTTP and RTMPT mappings

mondain edited this page Sep 12, 2014 · 2 revisions

Adding ports

To add more listening ports to your server, open the conf/jee-container.xml file and locate the tomcat.server bean and its connectors property. By default it will look like this:

<property name="connectors">
  <list>
    <bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector">
      <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
      <property name="address" value="${http.host}:${http.port}" />
      <property name="redirectPort" value="${https.port}" />  
    </bean>     
  </list>
</property>

Add two more ports (80 and 8080):

<property name="connectors">
  <list>
    <bean name="httpConnector" class="org.red5.server.tomcat.TomcatConnector">
      <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
      <property name="address" value="${http.host}:${http.port}" />
      <property name="redirectPort" value="${https.port}" />  
    </bean>     
    <bean name="httpConnector2" class="org.red5.server.tomcat.TomcatConnector">
      <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
      <property name="address" value="${http.host}:80" />
      <property name="redirectPort" value="${https.port}" />  
    </bean>     
    <bean name="httpConnector3" class="org.red5.server.tomcat.TomcatConnector">
      <property name="protocol" value="org.apache.coyote.http11.Http11NioProtocol" />
      <property name="address" value="${http.host}:8080" />
      <property name="redirectPort" value="${https.port}" />  
    </bean>     
  </list>
</property>

Additional Information

How to add RTMPT easily to your Red5 application: http://gregoire.org/2009/01/28/rtmpt-and-red5/

Offsite Port Tester

http://fmsguru.com/freeapps/connectiontester.cfm

This is a successful test with RTMP on 1935 and RTMPT on 80:

RMTP Default Success 35.2s 
RMTP Port 1935 Success 35.2s 
RMTP Port 80 Failed 35.1s 
RMTP Port 443 Failed 35.1s 
RMTPT (Tunneling) Default Success 36s 
RMTPT (Tunneling) Port 80 Success 36s 
RMTPT (Tunneling) Port 443 Failed 35.3s 
RMTPT (Tunneling) Port 1935 Failed 45.3s
Clone this wiki locally