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

**URL:** <https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438>\
**Category:** Wowza Streaming Engine\
**Tags:** security\
**Created:** [June 3, 2019, 2:21pm UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438 "2019-06-03T14:21:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silencer](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Silencer](https://community.wowza.com/u/Silencer)\
**Post date:** [June 3, 2019, 2:21pm UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438/1 "2019-06-03T14:21:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Silencer](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Silencer](https://community.wowza.com/u/Silencer)\
**Post date:** [June 3, 2019, 2:21pm UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438/2 "2019-06-03T14:21:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [June 3, 2019, 3:12pm UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438/3 "2019-06-03T15:12:34Z")

</div>

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](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:
- 

```auto
-Djava.net.preferIPv4Stack=false

```

---

<div class="post-metadata">

**Author:** ![Silencer](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Silencer](https://community.wowza.com/u/Silencer)\
**Post date:** [June 3, 2019, 4:44pm UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438/4 "2019-06-03T16:44:13Z")

</div>

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==](http://wowza-ipaddress:1935/live/my.stream/playlist.m3u8?74.50.208.90&endtime=1559579520%E2%98%86ttime=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==](http://wowza-ipaddress:1935/live/my.stream/playlist.m3u8?2001:19f0:7001:36ce:1520:e616:29f7:8944&endtime=1559579700%E2%98%86ttime=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 ?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [June 3, 2019, 9:38pm UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438/5 "2019-06-03T21:38:40Z")

</div>

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](https://www.wowza.com/docs/manually-install-and-troubleshoot-java-on-wowza-streaming-engine)

---

<div class="post-metadata">

**Author:** ![Silencer](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Silencer](https://community.wowza.com/u/Silencer)\
**Post date:** [June 5, 2019, 6:42am UTC](https://community.wowza.com/t/playback-security-with-include-client-ip-address-in-hash-generation-problem-with-ipv6/53438/6 "2019-06-05T06:42:30Z")

</div>

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