Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Two Internet Connection

2 views
Skip to first unread message

Wolfgang Draxinger

unread,
Jul 23, 2009, 5:14:57 AM7/23/09
to
Flying Dodo wrote:

> I have two internet connection. One is dial up, my own
> personally owned and other is provided by college on wifi. I am
> using Windows Vista 64 Ultimate Operating System. How can I
> choose which task to connect through which connection.

You asked in the wrong NG. They keywords for you are "binding the
socket to a address/interface" and "source based routing".

I could tell you without much ado how to do it in Linux and BSD
(bind, setsockopt SO_BINDTODEVICE, ip route tables). Im positive
though, that similiar is possible with Windows, too.

Redirecting your question there,


Wolfgang

Philip Herlihy

unread,
Jul 23, 2009, 11:28:07 AM7/23/09
to

Worth checking if you want to select the connection for a given
destination (rather than program). If the former, then you should have
a look at the ROUTE ADD command at the command line.

Phil, London

Alun Jones

unread,
Dec 15, 2009, 11:04:08 AM12/15/09
to
"Wolfgang Draxinger" <wdrax...@darkstargames.de> wrote in message
news:i9mlj6-...@frigg.yggdrasil.draxit.de...

In Windows, an unbound socket will cause traffic to go out of whichever NIC
is 'closest' in routing metrics to the destination. A bound socket will vary
depending on the interface's setting for "weak host sends", which you can
find out by using the comand "netsh interface ipv4 show interface
{interface-name}". For Windows Vista and Windows 7, the default for IPv4 is
to disable weak host sends, meaning that a bound socket will behave like an
unbound socket. In previous versions of Windows, the default behaviour is to
enable weak host sends.

Note also that weak host receive is disabled in Windows VIsta and Windows 7,
meaning that packets arriving at a NIC which is not configured as hosting
their destination address will be discarded.

This is a security measure, a performance measure and a reliability measure.
It can be reconfigured on a per-interface basis if it is not what you need.

Alun.
~~~~

0 new messages