Wowza Community

Playback security with Include client IP address in hash generation problem with Ipv6

Hi,

I use Include client IP address in hash generation for playback security.

Everything seem fine, but If client access with Ipv6 , stream not working.

$viewer_ip= $_SERVER[‘REMOTE_ADDR’];
// if viewer ip is Ipv4 , stream link working well, but when user is Ipv6 stream link not working

You can use either IPv4 or IPv6 but you cannot use both. In your case you must disable IPv4 for IPv6 to work. The article below provides additional information.

https://www.wowza.com/docs/how-to-use-ipv6-networking-in-wowza-media-server-software

From the article:

  • Ensure that the Java property java.net.preferIPv4Stack is set to false by opening [install-dir]/conf/Tune.xml in a text editor, setting the following line as shown, and then restarting Wowza Streaming Engine:
  • -Djava.net.preferIPv4Stack=false
    

eg : when I access my stream with Ipv4 :

http://wowza-ipaddress:1935/live/my.stream/playlist.m3u8?74.50.208.90&endtime=1559579520☆ttime=0&hash=3IA3RRUIRcoplLotZeEgmvOtsJgOXoufuP2HVFcUJwv53uA-ZRk7B3kWEr2bJl1whXM7Hr-xHfcFC66kngmkJQ==

but with Ipv6 ( eg I use japan proxy - eg 45.32.63.123)

http://wowza-ipaddress:1935/live/my.stream/playlist.m3u8?2001:19f0:7001:36ce:1520:e616:29f7:8944&endtime=1559579700☆ttime=0&hash=coFvn2j83aZmAsHu0paNSG191wloglh9fniaDY2ugB9pt8_93Gg44jbr89clGM5HROZsj1fpQNd-mFWPhpz2jA==

stream link not working

my wowza engine is on centos and Do I need to install java on that server ?

Wowza Streaming Engine is built on Java and installs Java. More information on Java can be found in our article below.

https://www.wowza.com/docs/manually-install-and-troubleshoot-java-on-wowza-streaming-engine

Problem fix :
I use cloudflare for my website , Now I add IP4 header and problem fix .