
3
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Deploying the server
Last updated 11/28/2012
“Add an adaptor” on page 15
Configure IP addresses and ports for RTMFP
RTMFP connection flow
1
An RTMFP client connects to a Flash Media Server fmsedge process over UDP port 1935.
Specify this port in the
ADAPTOR.HOSTPORT
parameter of the fms.ini file. To change this value, see “
Configure IP
addresses and ports for RTMFP
” on page 3.
Important:
RTMFP and RTMP/E clients use the same port to connect to Flash Media Server. However, RTMFP
clients use UDP and RTMP/E clients use TCP.
2
The fmsedge process redirects the connection to an fmscore process listening on a UDP port in the range 19350-
65535.
Each fmscore process has its own RTMFP listener. Each RTMFP listener binds to one UDP port in the range. When
an fmscore process starts, the listener binds to the next available UDP port in the range specified in the
Adaptor/RTMFP/Core/HostPortList/HostPort element of the Adaptor.xml configuration file. For example, if there
are three fmscore processes, they listen on ports 19350, 19351, and 19352. These ports are called the
RTMFP redirect
ports
or the
RTMFP migration ports
.
The number of ports in use depends on the number of fmscore processes in use. The number of fmscore processes
in use depends on how application instances are distributed. See “
Configure how applications are assigned to server
processes
” on page 29.
When the server redirects the client, it sends the client an IP address and port number. If the server is behind a NAT,
specify the public IP address of the server in the
public
attribute of the
HostPort
element. The server passes this
address to the client and the client uses it to connect to the fmscore process.
Configure RTMFP redirect ports
1
Open
rootinstall
/conf/_defaultRoot_/Adaptor.xml in a text editor.
2
Edit the value of the
HostPort
element. The default ports are as follows:
<Adaptor>
...
<RTMFP>
...
<Core>
<HostPortList>
<HostPort>:19350-65535</HostPort>
</HostPortList>
</Core>
</RTMFP>
</Adaptor>
3
If the RTMFP adaptor is behind a NAT, specify the in-front-of-NAT IP address that clients connect to in the
public
attribute of the
HostPort
element. The following example uses 12.34.56.78 for the in-front-of-NAT IP
address:
<HostPort public="12.34.56.78:19350-65535">:19350-65535</HostPort>
To redirect the client to an fmscore process, the fmsedge process sends the client an IP address and a port number.
The server knows the behind the NAT IP address, but the client can’t connect to that. The client needs to know the
in-front-of NAT IP address. To tell the server its in-front-of NAT IP address, specify it in the
public
attribute.