Skip to content

How do I change the Ant Media Server UDP port range? #4944

Answered by timantmedia
yashtandon113 asked this question in FAQs
Discussion options

You must be logged in to vote

You can change the UDP port range from the applications properties file located at

webapps/[application]/WEB-INF/red5-web.properties

First stop the server:

sudo service antmedia stop

Open your application’s properties file and change the following settings to add min/max port values:

Min port range value
settings.webrtc.portRangeMin=50000

Max port range value
settings.webrtc.portRangeMax=51000

Save the file and then restart Ant Media Server:

sudo service antmedia start

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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yashtandon113
Comment options

Answer selected by yashtandon113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants