problems with multicast in case of two network cards

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Al Ky

problems with multicast in case of two network cards

Postby Al Ky » 24 Feb 2006 21:54

vlc 0.8.4a, WinXP Pro SP2.

I have a computer with two network cards, one card is for LAN/internet, the 2nd is to connect my laptop to LAN thru this computer.
So, two network connections. When my laptop is not connected, VLC recieves and shows multicast. When it is conected, multicast is not shown.

I guess, the problem is that VLC tries to listen multicast on the wrong network interface.

It would be nice to have an option in GUI to specify on which network interface multicast must be listened.

Tikker
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Feb 2006 18:27

Postby Tikker » 26 Feb 2006 18:32

I'm having the exact same problem

(xp pro machine)

I found --iface <string> which seems to be the right option, but I'm apparently screwing up the syntax


I'm also assuming that I probably need to add it to the shortcut that launches VLC?
"E:\Program Files\VideoLAN\VLC\vlc.exe" --intf wx
is the current one

is the correct syntax:

"E:\Program Files\VideoLAN\VLC\vlc.exe" --intf wx --iface VLC

(where VLC is the name i've given to the interface I want) ?


or maybe:

"E:\Program Files\VideoLAN\VLC\vlc.exe" --intf wx --iface-addr 10.34.x.x

Tikker
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Feb 2006 18:27

Postby Tikker » 27 Feb 2006 18:19

anyone have an idea what the correct syntax is?

Tikker
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Feb 2006 18:27

Postby Tikker » 01 Mar 2006 20:57

No one has a box with 2 NIC's in it?

Roby

Dual Nics

Postby Roby » 03 Mar 2006 08:52

I have a box with two nics in it. One nic is for the production lan and the other is for all my multicasts.

This is Target: text for the VLC icon:

"C:\Program Files\VideoLAN\VLC\vlc.exe" udp:@234.5.5.5:10201 --miface="169.254.1.100"

The --miface= tells VLC to look at 169.254.1.100 for this multicast.

R.

Tikker
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Feb 2006 18:27

Postby Tikker » 04 Mar 2006 17:31

much <3 for Roby!


now someone needs to update the documentation to reflect it's --miface, and not just --iface

joco
New Cone
New Cone
Posts: 4
Joined: 01 Apr 2008 12:10

Re: problems with multicast in case of two network cards

Postby joco » 07 Apr 2008 04:57

Hi Tikker,

Did you solve this problem? Could you help me to solve this same problem?

My problem is:
=====================================
I have two LAN cards installed on my PC.

If I want to receive stream from internet via LAN1 and transmit it via LAN2 to my IPTV box, how to set vlc? Thanks!

Hardware:
Modem
LAN1 IP:192.0.0.100
LAN2 IP:192.0.0.101
IPTV_Set top box (only can receive data by fixed UDP port setting, ex:224.1.1.2:1234)
HUB

Hardware configuration:
Internet-->modem-->PC(LAN1) -->PC(LAN2) -->HUB-->IPTV(set top box)

Data stream flow:(I wish)
IPTV program provider --> Internet --> Modem --> my PC_LAN1 (received by UDP:224.1.1.1:1234) --> VLC --> my PC_LAN2 (Stream out by UDP:224.1.1.2:1234)--> IPTV BOX(received by UDP:224.1.1.2:1234)

Briefly, how to set VLC to choose specified LAN card to recieve/transmit? Many Thanks!

ndacharya
New Cone
New Cone
Posts: 2
Joined: 07 Apr 2008 19:44

Re: problems with multicast in case of two network cards

Postby ndacharya » 07 Apr 2008 19:59

Hi,

We also get the same problem. We have one satellite receive card Virtual MPE Ethernet interface and the other is a standard Ethernet interface. Whenever there is an Internet Connectivity on Ethernet Interface (for that matter internet on USB Interface whenever I use USB CDMA stick) the VLC stops playing the Multicast stream from the satellite card.

I have tried Iface syntex but I think Iface or Iface-addr are for the Remote Control Interface and not for VLC to understand which Physical Ethernet port/Ip Address to bind to get the Mulitcast stream.

The problem is not there if the Streaming is Unicast with the specified address of the Virtual MPE Port.

I have yet to try --miface and I will try it to-morrow.

NDA

ndacharya
New Cone
New Cone
Posts: 2
Joined: 07 Apr 2008 19:44

Re: problems with multicast in case of two network cards

Postby ndacharya » 09 Apr 2008 05:01

I tried -miface option and it did not work.

It looks --miface works only to send the stream to particular card when VLC is used as server.
Also --iface works for the interface card/IP to be used for the Remote Control.
There is no switch which helps select interface when VLC is used as network player.
I think this requires some development work.

Hippo
New Cone
New Cone
Posts: 3
Joined: 22 Nov 2008 16:12

Re: problems with multicast in case of two network cards

Postby Hippo » 22 Nov 2008 16:16

Hi!

Any new hints on that topic? I have the same problem, 2 NICs and VLC does not chose the right one to stream my IP TV Stream :(

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: problems with multicast in case of two network cards

Postby VLC_help » 22 Nov 2008 19:04

One option is to use route to setup proper routing for different NICs.

Hippo
New Cone
New Cone
Posts: 3
Joined: 22 Nov 2008 16:12

Re: problems with multicast in case of two network cards

Postby Hippo » 22 Nov 2008 19:16

How do I do that?


Hippo
New Cone
New Cone
Posts: 3
Joined: 22 Nov 2008 16:12

Re: problems with multicast in case of two network cards

Postby Hippo » 24 Nov 2008 09:45

One more question: How can I detect the Interface number of my NICs?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: problems with multicast in case of two network cards

Postby VLC_help » 25 Nov 2008 10:35

Code: Select all

route print
that should show interface numbers.

fantomduck
New Cone
New Cone
Posts: 1
Joined: 04 Sep 2009 10:00

Re: problems with multicast in case of two network cards

Postby fantomduck » 04 Sep 2009 10:16

i have succesfully arranged this problem by entering the parameter "TypeOfInterface" with value 2. To do so go start--> run and enter regedit. browse into the
HKEY_LOCAL_MACHINE
\SYSTEM
\CurrentControlSet
\Services
\Tcpip
\Parameters
you must know your nic GUID. in order to find this please do the following:
1. Open the Network Connections folder and note the name of the LAN connection, such as "Local Area Connection."
2. Use the tree view (the left pane) of the Registry Editor tool to open the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}
3. Under this key are the keys for the GUIDs corresponding to the installed LAN connections and other interfaces. Each of these GUID keys has a Connection subkey. Open each of the GUID\Connection keys and look for the Name setting in the contents pane whose value matches the name of the LAN connection from step 1.
4. keep in mind or note down the GUID of the nic taht you do not want to accept multicast requests.

5. now that you know your nic's GUID go into

HKEY_LOCAL_MACHINE
\SYSTEM
\CurrentControlSet
\Services
\Tcpip
\Parameters
\Interfaces
\interface GUID (here you must match the guid from the step 3)

when you find the interface right click on the GUID add new DWORD. name it TypeOfInterface (causion it's case sensitive!!) and the modify with value 2.

restart your machine and when you do an route print on the command prompt you will see that the 224.0.0.0 multicast address is forwarded only to the nic that doesn't have this enrty. if you want to switch back to default just delete this key.

regards,

E.D


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests