rtspsrc使用哪些客户端端口(如果未在port-range属性中指定) [英] which client ports are used by rtspsrc if it not specified on the port-range property

查看:194
本文介绍了rtspsrc使用哪些客户端端口(如果未在port-range属性中指定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到网络专家的请求,其中rtspsrc使用了RTSP客户端端口, 我们没有在rtspsrc元素上设置port-range属性.

I have a request from the network guy wich RTSP client ports are used by the rtspsrc, we didn't set the port-range property on the rtspsrc element.

如果未设置此属性,有人可以告诉我rtspsrc使用哪个端口吗? (TCP/UDP). 默认情况下是否存在任何最小最大值,还是整个范围从1-65535.

Can anybody tell me which ports are used the rtspsrc if this property not set? (TCP/UDP). Is there any min max by default or is it the whole range from 1 - 65535.

谢谢你们, 克里斯托夫(Br Christoph)

Thank you guys, Br Christoph

推荐答案

我相信这只是操作系统特定的动态端口范围.例如,在Linux上,将是:

I believe this is just the OS specific, dynamic port range. For example on Linux this would be:

cat /proc/sys/net/ipv4/ip_local_port_range
32768   60999

我不知道这是什么最新消息,但似乎通常是正确的:

I have no idea how up to date this is, but seems to be generally correct:

https://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html

现在,您的网络管理员可能不想将每个单个高级端口(32768-> 60999)映射到您的一项服务.您可能想要做的是继续使用port-range属性(例如33050-> 33060),并将该范围传递给网络管理员.要求他们创建防火墙规则,以将该公共范围的端口映射到您的计算机.您使用的每个流可能只需要几个端口即可.

Now, your network admin is probably not going to want to map every single high level port (32768->60999) to your one service. What you'll probably want to do is go ahead and use the port-range property (say 33050->33060) and pass that range over to your network admin. Ask them to create a firewall rule to map that public range of ports to your machine. You should probably only need a few ports for each stream you use.

也许想像一下,说出您要求的上述端口范围:

To perhaps kinda visualize this, say you ask for the above port range:

PUBLIC RTSP SERVER "sometestsrv.com"
554 //initial call to handshake for RTSP made here
50000 //RTP port for client 1 (somecompany.com:33050)
50001 //RTCP port for client 1 (somecompany.com:33051)
50100 //RTP port for client 2
50101 //RTCP port for client 2
...

PUBLIC IP FOR YOUR COMPANY "somecompany.com"
33050 //RTP port matching sometestsrv.com:50000
33051 //RTCP port matching sometestsrv.com:50001

YOUR SERVER "192.168.1.33" w/rtspsrc INSIDE "somecompany.com"
33050 //RTP port matching sometestsrv.com:50000
33051 //RTCP port matching sometestsrv.com:50001

这篇关于rtspsrc使用哪些客户端端口(如果未在port-range属性中指定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆