Page 1 of 1
problems with multicast in case of two network cards
Posted: 24 Feb 2006 21:54
by Al Ky
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.
Posted: 26 Feb 2006 18:32
by Tikker
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
Posted: 27 Feb 2006 18:19
by Tikker
anyone have an idea what the correct syntax is?
Posted: 01 Mar 2006 20:57
by Tikker
No one has a box with 2 NIC's in it?
Dual Nics
Posted: 03 Mar 2006 08:52
by Roby
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.
Posted: 04 Mar 2006 17:31
by Tikker
much <3 for Roby!
now someone needs to update the documentation to reflect it's --miface, and not just --iface
Re: problems with multicast in case of two network cards
Posted: 07 Apr 2008 04:57
by joco
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!
Re: problems with multicast in case of two network cards
Posted: 07 Apr 2008 19:59
by ndacharya
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
Re: problems with multicast in case of two network cards
Posted: 09 Apr 2008 05:01
by ndacharya
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.
Re: problems with multicast in case of two network cards
Posted: 22 Nov 2008 16:16
by Hippo
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
Re: problems with multicast in case of two network cards
Posted: 22 Nov 2008 19:04
by VLC_help
One option is to use route to setup proper routing for different NICs.
Re: problems with multicast in case of two network cards
Posted: 22 Nov 2008 19:16
by Hippo
How do I do that?
Re: problems with multicast in case of two network cards
Posted: 23 Nov 2008 19:00
by VLC_help
Re: problems with multicast in case of two network cards
Posted: 24 Nov 2008 09:45
by Hippo
One more question: How can I detect the Interface number of my NICs?
Re: problems with multicast in case of two network cards
Posted: 25 Nov 2008 10:35
by VLC_help
that should show interface numbers.
Re: problems with multicast in case of two network cards
Posted: 04 Sep 2009 10:16
by fantomduck
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