# SRT stream target to local port for pulling. (listener)

**URL:** <https://community.wowza.com/t/srt-stream-target-to-local-port-for-pulling-listener/97363>\
**Category:** Wowza Streaming Engine\
**Created:** [June 25, 2024, 2:05pm UTC](https://community.wowza.com/t/srt-stream-target-to-local-port-for-pulling-listener/97363 "2024-06-25T14:05:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Rossi1](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Daniel\_Rossi1](https://community.wowza.com/u/Daniel_Rossi1)\
**Post date:** [June 25, 2024, 2:05pm UTC](https://community.wowza.com/t/srt-stream-target-to-local-port-for-pulling-listener/97363/1 "2024-06-25T14:05:42Z")

</div>

Is there a way to set an SRT stream target to a local port for a remote server to pull SRT from that port ? I believe it’s a listener mode ? There is a service that can pull only not push to a port.

I tried sending to a local port and failed

```
com.wowza.wms.protocol.srt.socket.SRTCallerSocket: sending data to socket failed: -1. Socket: SRTCallerSocket [remoteIpAddress=127.0.0.1, remoteAddressPort=4000, srtNativeSession=2420690612256, srtSocketReference=1065648722, localPort=6990, sessionContext=PushPublishSRT[streamTargetContext=webrtc-merger/room2/AYZ8a0thBE5IyI2h-merger_room/AYZ8a0thBE5IyI2h-merger_room_srt, remoteAddress=localhost:4000]: , bound=true, settings=[SRTO_PBKEYLEN:16, SRTO_LINGER:0, SRTO_SENDER:true, SRTO_RCVSYN:false]]
```

---

<div class="post-metadata">

**Author:** ![marcosandrew](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/marcosandrew/32/1408_2.png) [@marcosandrew](https://community.wowza.com/u/marcosandrew)\
**Post date:** [July 2, 2024, 5:07am UTC](https://community.wowza.com/t/srt-stream-target-to-local-port-for-pulling-listener/97363/2 "2024-07-02T05:07:44Z")

</div>

Hello @Daniel_Rossi1,

I want to tell you that if you wanna set up an SRT stream so a remote server can pull from a local port, all you need to configure SRT in listener mode. You can use an SRT command-line to achieve this. Here’s a basic example:

```
srt-live-transmit srt://:4000 srt://remote-server-ip:remote-port

```

This command tells your local machine to listen on port 4000, allowing the remote server to pull the stream from there. Also, make sure your firewall allows traffic on this port.

Thank You
