Postby markfm » 03 Jan 2005 19:04
VLC does have some network-control-related capability, using Settings -- Preferences, checking the Advanced Settings box.
Overall, the technically "best" thing to do, however, is probably to use normal network commands at the OS level. You open a Command Prompt in Windows, then use the route add command:
route add [-p] ip_address_to_communicate_with [MASK a_network_mask] your_PC_IP_address_to_go_through
the -p is optional, makes the route persistent, so that it remains in place between reboots.
the MASK a_network_mask allows you to tell the PC to use the route for a whole group of address instead of just the one
Samples:
My PC has an ethernet card with IP address 1.2.3.4, and a second card with IP address 5.6.7.8.
route add 192.168.2.1 1.2.3.4
any communication to address 192.168.2.1 should be routed through my card with address 1.2.3.4. Knowledge of this path to use will go away next time I reboot my pc, or if I use a DELETE command.
route add -p 192.170.2.1 MASK 255.255.255.0 5.6.7.8
any communication to IP addresses of the form 192.170.2.x where x can be any number up to 255, should be routed through my card 5.6.7.8. (the "255"s force a bit comparison, determine what is matched). The -p makes it persistent. A "route delete will remove it.
route delete 192.168.2.1
I made a "whoops", no longer want to force my PC to use 1.2.3.4 for connections to 192.168.2.1
So, if you want to watch something, force it to use your 'Net-side NIC, use:
route add address_of_the_thing_to_watch address_of_your_PC_'Net-side_Ethernet_card