Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a laptop and a desktop. My laptop is used for university and my desktop for home. I want to be able to sync files between my laptop and desktop so a few of the folders are exactly the same.

Wireless transfers are slow over 54g so I've been doing transfers directly via gigabit. It is so much faster, instant most of the time. Is there any way I can use LAN for file transfers and wireless for internet? I have the LAN on a different subnet to the WLAN.

What is the easiest way without having to change the LAN and WLAN settings every time I come home?

share|improve this question

Depending on what application you are using to sync files you might be able to bind the application to the Wired LAN adapter to ensure it uses that interface during syncs. In general scenarios, most OS's automatically assign metrics to interfaces depending on the connection speed, so it should be using the fastest route anyway, but only if the sync is a local sync and not a cloud sync.

share|improve this answer

Yes, you can do this - I believe I have come up with quite a creative solution to your problem. In general terms (I can't be specific because you have not provided details of your OS etc) -

Ensure that the Netmask on the wifi router is bigger then on the Ethernet Interface, and use "smaller routes" to route across the LAN. For example

  • Set the LAN interface on your router to with a netmask of
  • Ensure your WIFI router is issuing DHCP addresses in the range
  • Leave the WAN Interface on DHCP (or hard code it to with a gateway of and a netmask of
  • Statically assign with a netmask of to the ethernet interface on your laptop.
  • If your desktop at home is permanently wired, statically assign its IP address to netmask ( If it has a WIFI and ethernet port like the laptop, and you normally use WIFI, set it up the same way as the laptop, except statically assign on the ethernet Interface )

This should work as follows:

When the laptop sends a packet out the network stack, it will look at the routing table. It will try and match the smallest netblock first, so it will send packets for the desktop interface out the ethernet address.

It will send all other packets out the wireless connection.

Because the netmask is bigger for the wireless connection, both laptop and desktop will be able to see the outside world.

Hopefully when the ethernet cable is not plugged in, the ethernet interface will not be assigned an IP address, so traffic will all be routed out the Wireless interface.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .