Wowza Community

Cannot assign requested address. Trying to input multicast on different nic

Hi, I have a wowza server that has 2 nic. The multicast video udp MPEG ts is coming from eth1. Initially I saw that the IGMP joins were going out on eth0 so I change the VHOST to force rtp multicast on eth1. The config worked to trigger the IGMP join on eth1 and I can see the multicas traffic on eth1 when doing a tcpdump.

I followed the guide to ingest mpeg2 ts. and I get the following:

INFO server comment - RTPDePacketizerMPEGTS.init: Drop incomplete video frames

INFO server comment - UDPPortSharingManager.bind[gt3Test/definst:true]: 239.20.10.1/239.20.10.1:8000

INFO server comment - MulticastTransport.bind[gt3Test/definst]: 239.20.10.1/8000

INFO stream publish mpegts.stream -

INFO server comment - RTPMediaCaster.Reconnector[1558631662:gt3Test/definst:mpegts.stream]: done: 29

INFO server comment - RTPMediaCaster.streamTimeout[1558631662:gt3Test/definst:mpegts.stream]: timeout:12000 diff:12013 reason:101

INFO server comment - RTPMediaCaster.resetConnection[1558631662:gt3Test/definst:mpegts.stream]:

INFO server comment - RTPMediaCaster.closeRTPSession[1558631662:gt3Test/definst:mpegts.stream]

ERROR server comment - RTPMulticastListener.unbind: java.net.SocketException: Cannot assign requested address

The mpegts.stream content:

udp://239.20.10.1:8000

VHOST:

75

true

1024000

65000

true

192.160.6.14

50

4096

Firewall is disable

IPV6 is disabled.

Not sure what the problem is. I also enabled port sharing but not sure why this would be a problem since I have only one channel.

This is a fresh centos 6.4 install.

My application requires two nic. One for management/control and one for live video ingest. ETH0 is for management/control and eth1 is for video feed.

Any ideas/suggestions?

Thanks

Hi,

Did you follow all the instructions here?

Looks like you have the first part.

Daren

Hi,

Did you follow all the instructions here?

Looks like you have the first part.

Daren

Yes I did try that. It does force the IGMP join to go on eth1 and I can see the udp multicast by doing a tcp dump. However Wowza does not see the input and throw this error :

ERROR server comment - RTPMulticastListener.unbind: java.net.SocketException: Cannot assign requested address

I enabled debug and it does not provide me more information.

After further testing, it only works when the default gateway of the OS is set to use the interface for multicast.

Example:

ETH0:192.160.6.14

ETH3:10.77.188.200

My APplication RTP properties:

multicastInterfaceAddress

192.160.6.14

Vhost.xml:

true

192.160.6.14

When the default route for the system is using ETH0 (example gw 10.77.188.254). it does not work. (issuing a route command)

I do see the multicast coming in on eth3 using tcpdump but wowza can’t see it.

If I change the default gateway to be 192.160.6.13 see below

[root@localhost ~]# route

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.160.6.12 * 255.255.255.252 U 0 0 0 eth0

10.77.188.0 * 255.255.255.0 U 0 0 0 eth3

link-local * 255.255.0.0 U 1002 0 0 eth0

link-local * 255.255.0.0 U 1005 0 0 eth3

default 192.160.6.13 0.0.0.0 UG 0 0 0 eth0

To me something is broken in wowza

Just to be complete. I also tried to add a static route to force multicast on eth0 and it did not help. Multicast is coming on ETH0 but wowza does not see it.

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.160.6.12 * 255.255.255.252 U 0 0 0 eth0

10.77.188.0 * 255.255.255.0 U 0 0 0 eth3

link-local * 255.255.0.0 U 1002 0 0 eth0

link-local * 255.255.0.0 U 1005 0 0 eth3

224.0.0.0 * 240.0.0.0 U 0 0 0 eth0

default 10.77.188.254 0.0.0.0 UG 0 0 0 eth3

Hi,

Have you followed the tutorial to listen for a particular interface? If so, and you continue to have issues, then there may be a different cause to your problem. Please submit a support request with a zip copy of your conf/ and logs/ folders.

Michelle

Just to be complete. I also tried to add a static route to force multicast on eth0 and it did not help. Multicast is coming on ETH0 but wowza does not see it.

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

192.160.6.12 * 255.255.255.252 U 0 0 0 eth0

10.77.188.0 * 255.255.255.0 U 0 0 0 eth3

link-local * 255.255.0.0 U 1002 0 0 eth0

link-local * 255.255.0.0 U 1005 0 0 eth3

224.0.0.0 * 240.0.0.0 U 0 0 0 eth0

default 10.77.188.254 0.0.0.0 UG 0 0 0 eth3

Is there any update of this problem !!! Did you manage to resolve the issue ?

Hi , I’m new beginning for this site recommend I thank you for everything;)

Hello,

We’ve seen some issues from Linux servers using dual nic’s when the reverse path filtering is enabled. You might want to try disabling this and see if it resolves the issues. This can be done with the following commands on Ubuntu:

echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/eth1/rp_filter

Best regards,

Andrew