问题:在本机上测试正常,局域网里通过ip不能访问
解决办法:修改red5-core.xml
<bean class="java.net.InetSocketAddress">
<constructor-arg index="0" type="java.lang.String" value="192.168.1.109" />
<constructor-arg index="1" type="int" value="1935" />
</bean>
将 java.net.InetSocketAddress 的值改为服务器的ip
修改red5-web.properties
webapp.virtualHosts=192.168.1.109,localhost,localhost:8088,127.0.0.1:8088
前台访问地址
private var rtmpURL:String="rtmp://192.168.1.109:1935/red5TomcatWeb";