0

Situation

I've two PC connected with LAN cable (without internet access) to each other. They also are on the same Wi-Fi network (with internet access).

Current behavior

  • When I use Internet on browser -> It uses Wi-Fi connection.
  • When I access Network (shared) drives from my other PC -> It again uses Wi-Fi connection.

What I want to achieve

  • When I use Internet on browser -> It uses Wi-Fi connection.
  • When I access Network (shared) drives from my other PC -> It should prioritize LAN cable to access the files
4
  • The easiest way to do this is to use separate vLANs on the router, putting two LAN ports on the router on a separate vLAN, or separate the bonding between the WiFi and LAN ports on the router. For anyone to write an answer. more detail is required, such as the OS being used and the router being used.
    – JW0914
    Commented Aug 26, 2023 at 12:02
  • What OS do they run?
    – Journeyman Geek
    Commented Aug 26, 2023 at 12:18
  • Also how are you connecting between the two machines? the way the machines are set up is important, I need things like IPs
    – Journeyman Geek
    Commented Aug 26, 2023 at 12:19
  • Two PC are connected via LAN cable to each other and not to the router. Commented Aug 27, 2023 at 1:17

1 Answer 1

1

I've vaguely got a similar setup or used one in the past. It needs a little bit of tweaking but there's a few elements here

  1. Treat the wifi and wired networks as two different subnets, say 192.168.1.x and 192.168.2.x

  2. You need to set up a static IP on either side on the wired interfaces - this is a setup I used in the past

  3. test the routes for the wired interfaces to ensure you're going the right way - use the IPs not the hostnames

  4. USE THE IPS, not hostnames to connect to the fileshares.

This should work

1
  • Quick note - in my example on the other post, I had to set a default gateway on one end. To this day I have no idea why that's needed.
    – Journeyman Geek
    Commented Aug 26, 2023 at 12:27

You must log in to answer this question.

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