Skip to content
URL:
https://<root>/system/livestream/serverPorts/update
Methods:
POST
Version Introduced:
12.0

Description

The update operation allows administrators to set default ports for Real-Time Messaging Protocol (RTMP, RTMPS) and Real-Time Streaming Protocol (RTSP, RTSPS) livestreams.

Request parameters

ParameterDetails

rtmpPort

The default port for RTMP livestreams. Defaults to 1935.

rtspPort

The default port for RTSP livestreams. Defaults to 554.

rangeMin

The minimum SRT/UDP port value. Defaults to 49152 and can be any available port below rangeMax.

rangeMax

The maximum SRT/UDP port value. Defaults to 65535 and can be any available port above rangeMin.

f

(Required)

The response format. The default response format is html.

Values: html | json | pjson

token

(Required)

Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation.

Example usage

The following is a sample POST request for the update operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /arcgis/admin/system/livestream/serverPorts/update HTTP/1.1
Host: organization.example.com:21443
Content-Type: application/x-www-form-urlencoded
Content-Length: []

rangeMax=65535&rangeMin=49152&rtspPort=554&rtmpPort=1945&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
    "rangeMax": <port>,
    "rtspPort": <port>,
    "rangeMin": <port>,
    "rtmpPort": <port>
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
    "rangeMax": 65535,
    "rtspPort": 554,
    "rangeMin": 49152,
    "rtmpPort": 1935
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.