# disallow rtmp port 1935

**URL:** <https://community.wowza.com/t/disallow-rtmp-port-1935/37098>\
**Category:** Wowza Streaming Engine\
**Created:** [May 13, 2013, 8:18am UTC](https://community.wowza.com/t/disallow-rtmp-port-1935/37098 "2013-05-13T08:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asher\_davidof](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@asher\_davidof](https://community.wowza.com/u/asher_davidof)\
**Post date:** [May 13, 2013, 8:18am UTC](https://community.wowza.com/t/disallow-rtmp-port-1935/37098/1 "2013-05-13T08:18:14Z")

</div>

Hi

I have configured rtmps on my wowza server 🙂

thank you for makeing it as easy as possible.

I was just wandering how can i disallow users from connecting in rtmp throw port 1935 (to only use rtmps via port 443)

for example:

to allow only rtmps via port 443 and http (not https) via port 1935

thanks

/Asaf

---

<div class="post-metadata">

**Author:** ![Tim\_Dougherty](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tim_dougherty/32/596_2.png) [@Tim\_Dougherty](https://community.wowza.com/u/Tim_Dougherty)\
**Post date:** [May 13, 2013, 8:33am UTC](https://community.wowza.com/t/disallow-rtmp-port-1935/37098/2 "2013-05-13T08:33:55Z")

</div>

Hi,

Edit [install-dir]/conf/Vhost.xml. You can remove port 1935 as needed or make other changes/additions to accomodate other port configurations. For example:

4

\*

1935 \<— Remove the 1935

-Tim

---

<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:** [May 14, 2013, 11:45am UTC](https://community.wowza.com/t/disallow-rtmp-port-1935/37098/3 "2013-05-14T11:45:29Z")

</div>

Asaf,

It’s not really ports that matter, you just want to ensure use of a secure protocol like RTMPS (or RTMPE) which you can do by adding the [ModuleRequireSecureConnection](https://www.wowza.com/docs/how-to-require-a-secure-rtmp-connection-modulerequiresecureconnection) module to each Application.xml

With this in place you can use any port that is defiined in a VHost.xml /HostPort but you will have to use secure protocol like rtmps or rtmpe

Otherwise, there is not a way to do what you describe: enable rtmps but not rtmp, which can be used on any port.

Richard

---

<div class="post-metadata">

**Author:** ![asher\_davidof](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@asher\_davidof](https://community.wowza.com/u/asher_davidof)\
**Post date:** [May 14, 2013, 12:57am UTC](https://community.wowza.com/t/disallow-rtmp-port-1935/37098/4 "2013-05-14T00:57:33Z")

</div>

Hi

I am useing Wowza 3.5.

I just want to block rtmp connections and allow only rtmps (port 443)

I can’t remove port 1935 completly becouse i have http users that use’s that port.

so http conection will be accepted via port 1935

and rtmp will be denied and rtmps will be accepted via port 443.

Can you please be more spesific on how to achive that?

how can i deny rtmp connection without removing port 1935 completly?

In the Application.xml i also have a secure token.

Thx

/Asaf
