Redirect rtmp streaming port under NAT

Hello, my server is located in local network. All network has only one external IP address.

I made remapping ports on network router for wowza server (internal server’s local ports to external from outside access) 80-> 20080 8086 -> 28086 1935 -> 21935

All features via http protocol work correctly but rtmp streaming don’t work.

In JW player code I use such settings:

image: “http://185.201.31.133:20080/jwplayer/video.jpg”,

provider: “rtmp”,

streamer: “rtmp://185.201.31.133:21935/cam1”

Should it work correctly?

Can I remap ports for streaming? Or should I use only 1935 external port for accessing players to stream?

This is how to add ports to Wowza:

https://www.wowza.com/docs/how-to-install-and-configure-wowza-streaming-engine#addtionalPorts

Richard

thank you for answer, I need this info too

I found the problem in router.