
4
FLASH
MEDIA
SERVER
4.5
CONFIGURATION
AND
ADMINISTRATION
Deploying the server
Last updated 11/28/2012
4
Save the file and restart the server. See
Start and stop the server
About the HostPort element
The value of the
HostPort
element has the following format:
<value-of-HostPort> := [<host-port-range> [; <host-port-range> [; ... ] ] ]
<host-port-range> := [<host>][:<port-range>[, <port-range> ] ]
<port-range> := <start-port>[ - <end-port> ]
In this example of
HostPortList
, each core listens to two ports: one port from either
host1:2000-2010
or
host2:3000-3010
and one port from either
host2:5000
or
host2:3010-4000
:
<HostPortList>
<HostPort public="12.34.56.78:2000-2010">host1:2000-2010; host2:3000-3010</HostPort>
<HostPort>host2:5000; host2:3010-4000</HostPort>
</HostPortList>
Configure a public IP address if the server is behind a NAT
If an 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:
<HostPort public="<in-front-of-NAT-server-IP>:19350-65535">:19350-65535</HostPort>
If you don't specify the
public
attribute, the server doesn’t know its in-front-of-NAT-address. The fmsedge process
can redirect the client to the correct port (for example, 19351) but it tells the client the behind-NAT address, which the
client can't contact.
Each
HostPort
element can specify a public address that corresponds to the specified port. This is the address that is
advertised to clients for the given
HostPort
. To advertise an address, specify a value for the
public
attribute of the
HostPort
element. The
public
attribute has the same format as the
HostPort
element. The number of ports specified
by the
public
attribute must equal the number of ports specified by the
HostPort
element. If the core listens on the
n-th port of the
HostPort
value, the n-th port of the
public
attribute is advertised as its value.
In this example of
HostPortList
with a
public
attribute, if a core listens on
host1:1005
, its publicly advertised
address is
host2:4005
.
<HostPortList>
<HostPort public="host2:4000-5000">host1:1000-2000</HostPort>
</HostPortList>
More Help topics
“
Add an adaptor
” on page 15
NAT and firewall traversal
NAT (network address translation) and firewall filtering can block peer-to-peer connections. In an intranet
application, in which you have control over the entire network, do the following to ensure that clients can create peer-
to-peer connections:
•
Allow UDP traffic through any firewalls
•
Use a NAT or firewall that complies with the NAT implementation recommendations of the IETF BEHAVE
working group.
•
Use the TURN proxy support in Flash Player to send traffic to a proxy in a DMZ that can comply with the previous
recommendations. See
Best practices for real-time collaboration using Flash Media Server
.