Results 1 to 7 of 7

Thread: Wowza with two network interfaces?

  1. #1
    Join Date
    Aug 2011
    Posts
    100

    Default Wowza with two network interfaces?

    Hi! That is possible to setup Wowza for receiving incoming streams on one network interface, to stream streams from second interface?

  2. #2

    Default

    By default Wowza binds to all Interfaces, so this should work no problem as you can configure the encoders to use the IP on one interface and connecting clients to use the IP of the other interface.

    Shamrock

  3. #3
    Join Date
    Aug 2011
    Posts
    100

    Default

    Thank you! How can i do that?

  4. #4

    Default

    Hi,

    In your encoder settings, set one of the IPs. In your Player, such as flash, or your web server, set the other IP. You can also take a look at VHhost.conf, where you can specify an IP address for Wowza to listen on certain ports. So, you can bind port 1936 to one IP, and publish to that IP. And bind 1935 to the other IP, (the one you give to clients).

    If you're using a .stream file to pull a stream into Wowza, I think, that the network interface chose will be determined by your OS/routing tables. So, you could setup a route something like this:
    [Encoder-IP]  255.255.255.255         On-link     [IP-of-NIC-to-Use]    276

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    /conf/VHost.xml

  6. #6
    Join Date
    Aug 2011
    Posts
    100

    Default

    So, if i need to receive rtmp streams on one network interface and trancive on second, Vhost.xml should be like that:

    <Root>^M
    <------><VHost>^M
    <------><------><HostPortList>^M
    <------><------><------><HostPort>^M
    <------><------><------><------><ProcessorCount>12</ProcessorCount>^M
    <------><------><------><------><IpAddress>192.168.1.1</IpAddress>^M
    <------><------><------><------><!-- Separate multiple ports with commas -->^M
    <------><------><------><------><!-- 80: HTTP, RTMPT -->^M
    <------><------><------><------><!-- 554: RTSP -->^M
    <------><------><------><------><Port>1935</Port>^M
    <------><------><------><------><SocketConfiguration>^M
    <------><------><------><------><------><ReuseAddress>true</ReuseAddress>^M
    <------><------><------><------><------><!-- suggested settings for video on demand applications -->^M
    <------><------><------><------><------><ReceiveBufferSize>24000</ReceiveBufferSize>^M
    <------><------><------><------><------><SendBufferSize>65000</SendBufferSize>^M
    <------><------><------><------><------><!-- suggest settings for low latency chat and video recording applications^M
    <------><------><------><------><------><ReceiveBufferSize>16000</ReceiveBufferSize>^M
    <------><------><------><------><------><SendBufferSize>16000</SendBufferSize>^M
    <------><------><------><------><------>-->^M
    <------><------><------><------><------><KeepAlive>true</KeepAlive>^M
    <------><------><------><------><------><!-- <TrafficClass>0</TrafficClass> -->^M
    <------><------><------><------><------><!-- <OobInline>false</OobInline> -->^M
    <------><------><------><------><------><!-- <SoLingerTime>-1</SoLingerTime> -->^M
    <------><------><------><------><------><!-- <TcpNoDelay>false</TcpNoDelay> -->^M
    <------><------><------><------><------><AcceptorBackLog>100</AcceptorBackLog>^M
    <------><------><------><------></SocketConfiguration>^M
    <------><------><------><------><HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming</HTTPStreamerAdapterIDs>^M
    <------><------><------><------><HTTPProviders>^M
    <------><------><------><------><------><HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*crossdomain.xml</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <------><------><------><------><------><HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*clientaccesspolicy.xml</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <------><------><------><------><------><HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*jwplayer.rss|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <------><------><------><------></HTTPProviders>^M
    <------><------><------></HostPort>









    <------><------><------><HostPort>^M
    <------><------><------><------><ProcessorCount>12</ProcessorCount>^M
    <------><------><------><------><IpAddress>192.168.1.2</IpAddress>^M
    <------><------><------><------><!-- Separate multiple ports with commas -->^M
    <------><------><------><------><!-- 80: HTTP, RTMPT -->^M
    <------><------><------><------><!-- 554: RTSP -->^M
    <------><------><------><------><Port>1935</Port>^M
    <------><------><------><------><SocketConfiguration>^M
    <------><------><------><------><------><ReuseAddress>true</ReuseAddress>^M
    <------><------><------><------><------><!-- suggested settings for video on demand applications -->^M
    <------><------><------><------><------><ReceiveBufferSize>24000</ReceiveBufferSize>^M
    <------><------><------><------><------><SendBufferSize>65000</SendBufferSize>^M
    <------><------><------><------><------><!-- suggest settings for low latency chat and video recording applications^M
    <------><------><------><------><------><ReceiveBufferSize>16000</ReceiveBufferSize>^M
    <------><------><------><------><------><SendBufferSize>16000</SendBufferSize>^M
    <------><------><------><------><------>-->^M
    <------><------><------><------><------><KeepAlive>true</KeepAlive>^M
    <------><------><------><------><------><!-- <TrafficClass>0</TrafficClass> -->^M
    <------><------><------><------><------><!-- <OobInline>false</OobInline> -->^M
    <------><------><------><------><------><!-- <SoLingerTime>-1</SoLingerTime> -->^M
    <------><------><------><------><------><!-- <TcpNoDelay>false</TcpNoDelay> -->^M
    <------><------><------><------><------><AcceptorBackLog>100</AcceptorBackLog>^M
    <------><------><------><------></SocketConfiguration>^M
    <------><------><------><------><HTTPStreamerAdapterIDs>cupertinostreaming,smoothstreaming,sanjosestreaming,dvrchunkstreaming</HTTPStreamerAdapterIDs>^M
    <------><------><------><------><HTTPProviders>^M
    <------><------><------><------><------><HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*crossdomain.xml</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <------><------><------><------><------><HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*clientaccesspolicy.xml</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <------><------><------><------><------><HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*jwplayer.rss|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <HTTPProvider>^M
    <------><------><------><------><------><------><BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>^M
    <------><------><------><------><------><------><RequestFilters>*</RequestFilters>^M
    <------><------><------><------><------><------><AuthenticationMethod>none</AuthenticationMethod>^M
    <------><------><------><------><------></HTTPProvider>^M
    <------><------><------><------></HTTPProviders>^M
    <------><------><------></HostPort>

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I don't think you can do that, if I understand. You have to publish to the same IP address that you playback with

    Richard

Similar Threads

  1. multicast input from two interfaces
    By sgtring in forum Live Streaming and Encoder Discussion
    Replies: 7
    Last Post: 04-23-2013, 07:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •