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

**URL:** <https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389>\
**Category:** Wowza Streaming Engine\
**Created:** [October 9, 2013, 6:27pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389 "2013-10-09T18:27:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frederic\_Turmel](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@Frederic\_Turmel](https://community.wowza.com/u/Frederic_Turmel)\
**Post date:** [October 9, 2013, 6:27pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/1 "2013-10-09T18:27:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [October 9, 2013, 9:21pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/2 "2013-10-09T21:21:41Z")

</div>

Hi,

Did you follow all the[instructions here](https://www.wowza.com/docs/how-to-listen-for-a-multicast-stream-on-a-particular-network-interface)?

Looks like you have the first part.

Daren

---

<div class="post-metadata">

**Author:** ![Frederic\_Turmel](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@Frederic\_Turmel](https://community.wowza.com/u/Frederic_Turmel)\
**Post date:** [October 9, 2013, 10:13pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/3 "2013-10-09T22:13:10Z")

</div>

> Hi,
> 
> Did you follow all the[instructions here](https://www.wowza.com/docs/how-to-listen-for-a-multicast-stream-on-a-particular-network-interface)?
> 
> 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.

---

<div class="post-metadata">

**Author:** ![Frederic\_Turmel](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@Frederic\_Turmel](https://community.wowza.com/u/Frederic_Turmel)\
**Post date:** [October 10, 2013, 9:18am UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/4 "2013-10-10T09:18:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Frederic\_Turmel](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@Frederic\_Turmel](https://community.wowza.com/u/Frederic_Turmel)\
**Post date:** [October 10, 2013, 9:26am UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/5 "2013-10-10T09:26:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [December 30, 2016, 5:02pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/6 "2016-12-30T17:02:01Z")

</div>

Hi,

Have you followed the tutorial to [listen for a particular interface](https://www.wowza.com/docs/how-to-listen-for-a-multicast-stream-on-a-particular-network-interface)? If so, and you continue to have issues, then there may be a different cause to your problem. Please [submit a support request](https://www.wowza.com/support/open-ticket) with a zip copy of your conf/ and logs/ folders.

Michelle

---

<div class="post-metadata">

**Author:** ![A\_S\_M\_Shamim\_Reza](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@A\_S\_M\_Shamim\_Reza](https://community.wowza.com/u/A_S_M_Shamim_Reza)\
**Post date:** [November 16, 2016, 3:03pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/7 "2016-11-16T15:03:13Z")

</div>

> 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 ?

---

<div class="post-metadata">

**Author:** ![release\_me\_then\_I](https://avatars.discourse-cdn.com/v4/letter/r/67e7ee/32.png) [@release\_me\_then\_I](https://community.wowza.com/u/release_me_then_I)\
**Post date:** [February 18, 2017, 1:34am UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/8 "2017-02-18T01:34:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [February 27, 2018, 10:19pm UTC](https://community.wowza.com/t/cannot-assign-requested-address-trying-to-input-multicast-on-different-nic/41389/9 "2018-02-27T22:19:31Z")

</div>

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:

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

```

Best regards,

Andrew
