# Copy stream from remote server and restream with custom application and stream name

**URL:** <https://community.wowza.com/t/copy-stream-from-remote-server-and-restream-with-custom-application-and-stream-name/49698>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [September 15, 2017, 3:41pm UTC](https://community.wowza.com/t/copy-stream-from-remote-server-and-restream-with-custom-application-and-stream-name/49698 "2017-09-15T15:41:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romuald\_Tx](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Romuald\_Tx](https://community.wowza.com/u/Romuald_Tx)\
**Post date:** [September 15, 2017, 3:41pm UTC](https://community.wowza.com/t/copy-stream-from-remote-server-and-restream-with-custom-application-and-stream-name/49698/1 "2017-09-15T15:41:58Z")

</div>

Hello, how can i make restream from remote RTMP server and make stream with my custom application and stream name

I tried make that with using this code:

```auto
IApplication app = appInstance.getApplication();
        app.getAppInstance("644").startMediaCasterStream("rtmp://REMOTE RTMP SERVER", "liverepeater");

```

Thats create stream with Application name : live/644 and stream: “rtmp://REMOTE RTMP SERVER”

I wanna to create stream on application “live” and stream “644”

How can i make something like this?

Greetings
