# Aliasing a live stream to replace hard coded url in a mobile application...

**URL:** https://community.wowza.com/t/aliasing-a-live-stream-to-replace-hard-coded-url-in-a-mobile-application/43583
**Category:** Wowza Streaming Engine
**Created:** [August 6, 2014, 3:39pm UTC](https://community.wowza.com/t/aliasing-a-live-stream-to-replace-hard-coded-url-in-a-mobile-application/43583 "2014-08-06T15:39:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Marc\_Hauge](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Marc\_Hauge](https://community.wowza.com/u/Marc_Hauge)
#### Post date: [August 6, 2014, 3:39pm UTC](https://community.wowza.com/t/aliasing-a-live-stream-to-replace-hard-coded-url-in-a-mobile-application/43583/1 "2014-08-06T15:39:19Z")

</div>

I see that you can create stream files, but I would like to know if there is a way to create an alias to a url such as: [http://host.domain.com:8000/station.mp3](http://host.domain.com:8000/station.mp3).

We can’t use the .stream suffix, we need to use .mp3. Specifically for http streaming. We are hoping to retire an IceCast server.

---

<div class="post-metadata">

### Author: ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)
#### Post date: [August 7, 2014, 11:16am UTC](https://community.wowza.com/t/aliasing-a-live-stream-to-replace-hard-coded-url-in-a-mobile-application/43583/2 "2014-08-07T11:16:13Z")

</div>

Hi,

Take a look at the [Stream Name Alias](https://www.wowza.com/docs/how-to-get-the-streamnamealias-addon) AddOn.

This AddOn replaces the .stream files and will allow you to use different stream names.

Note: There are specific URL formats that are required by Wowza and these are determined by the player. You may need some sort of URL rewrite before the request hits the Wowza server, if you are wanting to use IceCast URL formats.

Roger.

---

<div class="post-metadata">

### Author: ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)
#### Post date: [August 8, 2014, 8:03am UTC](https://community.wowza.com/t/aliasing-a-live-stream-to-replace-hard-coded-url-in-a-mobile-application/43583/3 "2014-08-08T08:03:45Z")

</div>

Hi,

It isn’t currently possible to do the type of redirect you want on the Wowza server so it would need to be done externally before the connection arrives at the server.

Saying that, if you are able to create a custom module, it may be possible to use a separate HostPort listening on port 8000 and a HTTP Provider to intercept the original request and perform a 302 redirect to the proper application and stream name.

The actual stream urls need to have an application name, stream name (and playlist.m3u8 in the case of HLS streams) so it isn’t possible to just specify an application name on it’s own.

If you need assistance, it may be best to post a request on the [Find a Consultant](http://community.wowza.com/c/-/7) forum.

Roger.

---

<div class="post-metadata">

### Author: ![Marc\_Hauge](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Marc\_Hauge](https://community.wowza.com/u/Marc_Hauge)
#### Post date: [August 7, 2014, 11:34am UTC](https://community.wowza.com/t/aliasing-a-live-stream-to-replace-hard-coded-url-in-a-mobile-application/43583/4 "2014-08-07T11:34:59Z")

</div>

Per your advice, I looked at Stream Name Alias and came up short. I either am not getting it or it cannot do what I am hoping to accomplish. We simply need clients that are connecting with the urls: [http://host.domain.com:8000/station.mp3](http://host.domain.com:8000/station.mp3) or [http://host.domain.com:8000/station.aac](http://host.domain.com:8000/station.aac) to be redirected to an application: [http://host.domain.com:8000/Application/Stream/playlist.m3u8](http://host.domain.com:8000/Application/Stream/playlist.m3u8).

If this is not possible without a web server sitting in front of the Wowza server doing a rewrite, can we alias the application itself with Stream Name Alias?

ex. ([http://host.domain.com:8000/application](http://host.domain.com:8000/application) \> [http://host.domain.com:8000/Application/Stream/playlist.m3u8](http://host.domain.com:8000/Application/Stream/playlist.m3u8))

If so, does this happen in the aliasmap.stream.txt or the aliasmap.play.txt and what might it look like?
