Skip to content

Instantly share code, notes, and snippets.

@mondain
Created November 8, 2021 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mondain/6a087a8e730422c904f75494e94667f5 to your computer and use it in GitHub Desktop.
Save mondain/6a087a8e730422c904f75494e94667f5 to your computer and use it in GitHub Desktop.
Enable IPv6 in Red5 Pro Server

Add to red5.sh and red5pro.service: -Dorg.ice4j.ipv6.DISABLED=false red5.sh example:

if [ -z "$JVM_OPTS" ]; then
    JVM_OPTS="-Dorg.ice4j.ipv6.DISABLED=false -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Xms2g -Xmx2g -Xverify:none -XX:+UseBiasedLocking -XX:InitialCodeCacheSize=8m -XX:MaxGCPauseMillis=500 -XX:ReservedCodeCacheSize=32m"
fi

red5pro.service example:

ExecStart=/usr/bin/sudo ${RED5_HOME}/jsvc \
    -home ${JAVA_HOME} \
    -cwd ${RED5_HOME} \
    -cp ${RED5_HOME}/commons-daemon-1.2.4.jar:${RED5_HOME}/red5-service.jar:${RED5_HOME}/conf \
    -Dred5.root=${RED5_HOME} \
    -Djava.library.path=${RED5_HOME}/lib/amd64-Linux-gpp \
    -Dorg.ice4j.ipv6.DISABLED=false \

Edit /usr/local/red5pro/conf/webrtc-plugin.properties file:

ice.ignore.remotehost=true
ice.enable.prflx=false
ice.enable.ipv6=true

Delete / replace ice4j-red5pro-3.2.*.jar in /usr/local/red5pro/lib with version 3.2.63 which is downloadable here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment