How do I change the Ant Media Server UDP port range? #4944
-
According to the documentation, the default UDP port range is 50000-60000. How can we change the port range if we don't want to open such a large range? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can change the UDP port range from the applications properties file located at
First stop the server:
Open your application’s properties file and change the following settings to add min/max port values:
Save the file and then restart Ant Media Server:
In this example, Ant Media Server uses ports between 50000 and 51000 (1000 ports) for WebRTC connections. Please pay particular attention to the range used because it also limits the number of concurrent publishers and players. So assume that it uses 2 ports for each WebRTC connection, having 1000 ports open limits the server to 500 connections. |
Beta Was this translation helpful? Give feedback.
You can change the UDP port range from the applications properties file located at
First stop the server:
Open your application’s properties file and change the following settings to add min/max port values:
Save the file and then restart Ant Media Server:
In this example, Ant Media Server uses ports between 50000 and 51000 (1000 ports) for WebRTC connections.
Please pay particular attention to the range used because it also limits the number of concurrent publishers and…