# block another ip adress's to transcode shoutcast stream.

**URL:** <https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824>\
**Category:** Wowza Streaming Engine\
**Created:** [October 8, 2010, 4:11am UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824 "2010-10-08T04:11:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [October 8, 2010, 4:11am UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/1 "2010-10-08T04:11:32Z")

</div>

Hello

everybody is connect my server and transcode own shoutcasts to rtmp and use my server without my permission.

i want to determine ip adress for shoutcast connections.

but i dont want to user authentication with user name and password.

my shoutcast servers and wowza in same server and use 1 ip adress.

i want to allow only this server ip adress for source.

thank you.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 8, 2010, 12:18pm UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/2 "2010-10-08T12:18:50Z")

</div>

Use StreamNameAlias package to secure shoutcast application

[https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon](https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon)

You will specify which streams are allowed (you can use wildcards) and remove the default rule from the stream alias file.

Richard

---

<div class="post-metadata">

**Author:** ![Roger\_Littin](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Roger\_Littin](https://community.wowza.com/u/Roger_Littin)\
**Post date:** [October 8, 2010, 4:16pm UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/3 "2010-10-08T16:16:28Z")

</div>

Hi djcenk,

What Richard is saying is, with the StreamNameAlias package, you can prevent sombody from starting a connection to an unauthorised shoutcast stream. You would use this package to specify which shoutcast streams are allowed and remove the wildcard entry which will prevent someone starting a different shoutcast stream.

I think this is what you mean.

Roger.

---

<div class="post-metadata">

**Author:** ![Roger\_Littin](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Roger\_Littin](https://community.wowza.com/u/Roger_Littin)\
**Post date:** [October 8, 2010, 5:36pm UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/4 "2010-10-08T17:36:24Z")

</div>

Refer to the documentation that comes with the StreamNameAlias package.

Edit your Application.xml and add the following as the last module in the Modules section.

```auto
<Module>
	<Name>ModuleStreamNameAlias</Name>
	<Description>ModuleStreamNameAlias</Description>
	<Class>com.wowza.wms.plugin.streamnamealias.ModuleStreamNameAlias</Class>
</Module>

```

Then add the following to the properties section at the end of Application.xml

```auto
<Property>
	<Name>aliasMapFileStream</Name>
	<Value>${com.wowza.wms.context.VHostConfigHome}/conf/aliasmap.stream.txt</Value>
</Property>
<Property>
	<Name>aliasMapFilePlay</Name>
	<Value>${com.wowza.wms.context.VHostConfigHome}/conf/aliasmap.play.txt</Value>
</Property>
<Property>
	<Name>aliasMapPathDelimiter</Name>
	<Value>/</Value>
</Property>
<Property>
	<Name>aliasMapNameDelimiter</Name>
	<Value>=</Value>
</Property>
<Property>
	<Name>aliasMapDebug</Name>
	<Value>true</Value>
	<Type>Boolean</Type>
</Property>

```

The aliases work very simply. each line in the alias file which starts wth # is a comment and then each alias is defined [pattern]=[alias] where pattern is what the player requests and [alias] is the real stream name. When a stream is requested, it will go through the list until it finds a pattern match and then play the stream with the alias name. Wildcards and and special variables can also be used but are probably not needed in your case.

You will want to create a file called aliasmap.stream.txt in the conf folder and have the following in it

```auto
# Expands stream names to SHOUTcast urls
# Omit default rule to block users from entering any url
station1=http://authorized_ip:8000

```

The player would now have to request station1 to play the stream.

This will tell the system that when station1 is requested, start restreaming [http://authorized\_ip:8000](http://authorized_ip:8000)

If someone trys to play [http://authorized\_ip:8000](http://authorized_ip:8000) directly or [http://not-authorized\_ip:8000](http://not-authorized_ip:8000) it will fail.

Depending on your setup, you may also need a aliasmap.play.txt file as well. This will allow or disallow other file types from being played.

Roger.

---

<div class="post-metadata">

**Author:** ![Roger\_Littin](https://avatars.discourse-cdn.com/v4/letter/r/d26b3c/32.png) [@Roger\_Littin](https://community.wowza.com/u/Roger_Littin)\
**Post date:** [October 8, 2010, 6:26pm UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/5 "2010-10-08T18:26:32Z")

</div>

No problem. Glad to help.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 8, 2010, 4:01pm UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/6 "2010-10-08T16:01:19Z")

</div>

You can modify this example, which limits to certain IP address.

[https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip](https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip)

Richard

---

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [October 8, 2010, 4:22am UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/7 "2010-10-08T04:22:14Z")

</div>

thank you for your answer but i want to block ip adress to connect my wowza.

---

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [October 8, 2010, 8:54am UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/8 "2010-10-08T08:54:05Z")

</div>

i was try but not ok ☹

how can i make alias file for this operation ?

sample :

authorized shoutcast server and port

[http://authorized\_ip:8000](http://authorized_ip:8000)

i want allow only this authorized servers ar connect to wowza for transcoding.

---

<div class="post-metadata">

**Author:** ![ceyhun\_ceyhun](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@ceyhun\_ceyhun](https://community.wowza.com/u/ceyhun_ceyhun)\
**Post date:** [October 8, 2010, 10:11am UTC](https://community.wowza.com/t/block-another-ip-adresss-to-transcode-shoutcast-stream/33824/9 "2010-10-08T10:11:12Z")

</div>

now ok 🙂 its cool

thank you everybody
