• How to set up an application for RTSP/RTP streaming

    Instructions for how to configure a Wowza Media Server application for streaming RTSP/RTP.

    Contents




    Configuration


    There are several additional RTSP/RTP settings that should be set in [install-dir]/conf/[application]/Application.xml that describe the IP addresses assigned to the Wowza Media Server. These IP addresses are used during the RTSP/RTP Session Description Protocol (SDP) exchange and transport negotiation. The settings are:

    • RTP/RTSPBindIpAddress: IP address that Wowza Media Server will bind to when streaming RTP over UDP.
    • RTP/RTSPConnectionIpAddress: IP address published in connection (c=) line of Session Description Protocol (SDP) data.
    • RTP/RTSPOriginIpAddress: IP address published in origin (o=) line of SDP data.


    If Wowza Media Server is behind a router or firewall


    The values assigned to these settings vary depending on your network configuration.

    If the Wowza Media Server is behind a router or firewall that is providing Network Address Translation (NAT), then there are two IP addresses that will be used during configuration [wowza-internal-ip-address] and [wowza-external-ip-address]. The [wowza-internal-ip-address] address is the Wowza Media Server internal IP address (the address that is assigned to the Wowza Media Server network adapter). The [wowza-external-ip-address] is the router or firewall exposes on the Internet or that is mapped to the Wowza Media Server. Based on these two addresses, the settings above should be set as follows:

    • RTP/RTSPBindIpAddress: [wowza-internal-ip-address]
    • RTP/RTSPConnectionIpAddress: [wowza-external-ip-address]
    • RTP/RTSPOriginIpAddress: [wowza-external-ip-address]


    For example if the internal address where 192.168.1.7 and the external address where 85.67.123.10 the settings should be set to:
    Code:
    <RTSPBindIpAddress>192.168.1.7</RTSPBindIpAddress>
    <RTSPConnectionIpAddress>85.67.123.10</RTSPConnectionIpAddress>
    <RTSPOriginIpAddress>85.67.123.10</RTSPOriginIpAddress>
    Restart Wowza when configuration changes have been made for the changes to take effect.

    If Wowza Media Server is directly accessible on the Internet


    The values assigned to these settings vary depending on your network configuration.

    If the Wowza Media Server is directly accessible on the Internet, then all three values should be set the Wowza Media Server IP address.

    Testing


    Wowza provides a mobile test stream that you can use to test your setup.

    EC2 Instances


    Wowza Media Server 3.x and 2.2.x for EC2 automatically sets these values based on the internal and external IP address of the instance.



    Comments 1 Comment
    1. jachai -
      We are using the wowza server on amazon ec2 instances.
      From what I understand the internal IP may change.
      How do I go about setting up the internal ip for such a case?

      Thanks,
      Jonathan