Author Topic: Using both ethernet and wireless.  (Read 982 times)

Offline tomoya-kun

  • Member
  • Posts: 6374
  • Reporting for duty.
Using both ethernet and wireless.
« on: October 16, 2010, 05:54:31 AM »
I've got 2 lines at the moment from 2 ISPs.  Can I connect to wifi, plug in an ethernet and use both?  And say, set torrents to ethernet and everthing else to wifi?


BBT Team Riko Suminoe #000002

Offline bork

  • Member
  • Posts: 251
  • Huh ?
Re: Using both ethernet and wireless.
« Reply #1 on: October 16, 2010, 03:29:20 PM »
You can have both on without causing a problem, its just that the system will have a preference on which of the two it will use.  Assuming your using windoz, do a "route print" in a dos box and look at the bottom where it say's 'Default Gateway:'; that's the network that is going to be used.

Your system will use that entry to make decisions  on were to send its traffic out on.  The receiving system can only send traffic back to yours based on the direction it came from.

Some more about Windoz - having both on can cause weird directory synchronization problems it you are use it.
« Last Edit: October 16, 2010, 03:32:43 PM by bork »

Online Pentium100

  • Member
  • Posts: 528
Re: Using both ethernet and wireless.
« Reply #2 on: October 16, 2010, 03:41:49 PM »
I've got 2 lines at the moment from 2 ISPs.  Can I connect to wifi, plug in an ethernet and use both?  And say, set torrents to ethernet and everthing else to wifi?
I assume you use Windows XP.

In theory yes, however, the configuration may be a bit complicated.

If your Ethernet connection has a static IP, then set it to a large metric (larger than the one on WiFi), set the IP in uTorrent as the one to bind to (net.bind_ip and net.outgoing_ip).This way, uT will use Ethernet and everything else will use WiFi, if WiFi fails, everything will use Ethernet, if Ethernet fails uT won't work.

If your Ethernet connection has a dynamic IP or you want to separate them more cleanly, you will have to use additional machine (either real or virtual, let's assume virtual). Create a virtual machine with two network cards (one bound to host OS (host OS will have 3 network connections now  - two internet connections and one connection to the guest OS), the other directly to the real Ethernet network card), install your OS of choice and use BitTorrent there, or anything else you want to use there. Unbind TCP/IP protocol on the Ethernet connection on your host OS.

This way your host OS will use WiFi only, guest OS will only use Ethernet. The additional network connection between host and guest will be used to put downloaded files on the host (I assume you can set up file sharing).

You can also use a virtual machine as a router to load balance between the two connections (so that they both are used for everything) or use it to specify which traffic goes trough which connection (in that case you will have to while list which ports go trough WiFi, since BitTorrent uses a lot of different ports and is difficult to filter). If you are interested in this option, tell me, since I am too lazy to write it up now and the previous way is a bit easier.

If you need diagrams let me know.


UPDATE: when I wrote this post I did not see bork's reply. Anyway, setting a default gateway to WiFi should work, but do not forget to have Ethernet's gateway too (but with higher metric) since otherwise uT won't be able to make connections. But thi is basically the same as my first option and needs static IP for Ethernet.
BBT Ika Musume Fanclub Member #080586
Misaka Mikoto Fanclub Member:080586

Offline tomoya-kun

  • Member
  • Posts: 6374
  • Reporting for duty.
Re: Using both ethernet and wireless.
« Reply #3 on: October 16, 2010, 09:45:47 PM »
I see.  I think I got it working, but some programs (steam) try to use ethernet even if my torrents are using that whole connection 


BBT Team Riko Suminoe #000002

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: Using both ethernet and wireless.
« Reply #4 on: October 17, 2010, 08:14:04 PM »
It'd be a lot easier to have two separate machines.  Or, even better, have some sort of load-balancing solution that directs traffic over whichever line it thinks will work better.  I don't really know anything about this, though.
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline _Jitsu_

  • Member
  • Posts: 41
Re: Using both ethernet and wireless.
« Reply #5 on: October 17, 2010, 08:38:26 PM »
As far as i know there is much easier way to do such thing.
You can essentialy force windows to change the network card binding order... or maybe network ADAPTERS to be specific, because it will work also if you you're using the same card for both thing (even though it's physically the same device, you get two network bindings.)

1)Open up your network connections.

2) Find the menu bar. If there is none, hit ALT, it should show up.

3) Advanced tab -> Advanced Settings

4) First tab, first group box. Move up your MOST PREFERED connection (probably ethernet via cable) up to the top.

5) There, done. All incoming/outgoing connections WILL be using that binding as a favorite setting, however...

There is one more thing to that. Since the way it's handled, you cannot set application specific binding... but... you can most probably make windows think that the first one is unavaible.
I have few things on my mind. You can try basically forcing apps to block the first one, to do that:

1) You can try binding to static IP, as the previous user mentioned
2) Using IPv4 OR v6 EXCLUSIVE for some apps, and turning them off for specific connections. That is for example - your ethernet bind only works with v6 and wireless with v4. That way you can set some apps to use ONLY the one you want.
3) Change your router setting to disallow connections from specific apps like torrent. Hopefully there is a way for you to distinguish one from another if they're going through the same router.
4) You can try limiting the app from using the said connections by some 3rd party applications. NetLimiter2 would be my best bet.

Honestly i'm at blank right now, since i didn't ever try to do such thing, except for my nix-based router, but connection preference wasn't really my intention there. Oh right... maybe you can set your ROUTER to favor one or another protocol - try going through the config - especially the QoS (or Quality of Service if it's not an abberv.)

Hope it helped a lil bit.

Online Pentium100

  • Member
  • Posts: 528
Re: Using both ethernet and wireless.
« Reply #6 on: October 18, 2010, 06:38:40 AM »
Setting connection priorities won't make uT use the other connection.

You still need to go to uT Options->Preferences>Advanced and set net.bind_ip and net.outgoing_ip to the IP address of the connection you want uTto use. If that connection has a dynamic IP, you will have to change the setting every time your IP changes, torrents won't work until you do it.

If your "torrent" connection has a dynamic IP the best way to do it is using a virtual (or real) machine for each connection. VMware server was free the last time I checked and it works quite well.

(I assume you use Windows XP or 2003; Instructions are based on VMWare server version 1)

The way you do it is like this:
(click to show/hide)
BBT Ika Musume Fanclub Member #080586
Misaka Mikoto Fanclub Member:080586