Connect to internet with wifi, while wired to a different LAN through ethernet

22

8

So I have a small router I'm connected to through an ethernet cable, and I'm having multiple devices connecting to that router through wifi, so they can view my computer screen. Screen sharing on Windows 7. At the same time I would like to use my wifi adapter to connect to a different router which is connected to the internet. So far I can't do them simultaneously.

-First I just tried simply connecting to the wifi and plugging in the cable, but windows gave preference to the ethernet I presumed because the screen sharing was working but I couldn't get to the internet.

-Second I tried tweaking the preference order of adapters in Advanced settings in the Network/Sharing Center. That didn't work.

-Third I tried manually tweaking the metrics in the advanced properties for each adapter to give connection preference to wifi. This half works. I can start screen sharing and that works, and I can connect to the internet wifi network, but when I try to access it (ex. open google chrome), my screen sharing connection is killed. And this is vice versa if I got to the internet first.

Thoughts?

user3112658

Posted 2014-04-10T19:59:08.597

Reputation: 271

If you have the Microsoft Virtual WiFi Miniport Adapter installed, you should be able to use that to create a separate network connection. I think it is there as a developer tool but, if you have the know how, I think you'll be able to use it to create an independent network connection. There's more info at the following link: http://helpdeskgeek.com/windows-7/what-is-microsoft-virtual-wifi-miniport-adapter/

– P Fitz – 2014-04-10T20:37:14.660

Why would I need to use the virtual adapter when I have an open wifi adapter? Besides, after testing it seems the virtual adapter can't even connect to a network, I can only create hosted networks with it.. – user3112658 – 2014-04-11T19:20:03.933

Answers

4

Figured it out, I needed to set the ethernet LAN IP of my machine to static and remove the default gateway.

user3112658

Posted 2014-04-10T19:59:08.597

Reputation: 271

I am having the same problem. Can you please explain to me how to do this? I'm not to experienced with network settings. Thanks in advance. – Jonny – 2014-09-01T16:27:46.753

33

The following is a step by step process as to how you can use wireless internet without taking out your ethernet cable out.

  1. Open Network and Sharing Centre.
  2. Go to change Adapter Settings.
  3. Goto properties of Local Area Network.
  4. Click on Internet Protocol version 4 and go to it's properties.
  5. Click on Advanced
  6. You will see a block checked there by the name of "Automatic Metric".
  7. Uncheck it and then enter 2 in that section.
  8. Now, Do the same for the wireless network but enter 1.

Save the setting and you'll be able to use wifi even when your ethernet cable is connected to the LAN.

Dave-Eaux

Posted 2014-04-10T19:59:08.597

Reputation: 331

1That's helpful but would you also give an explanation that would help even more – Ahmed – 2016-07-15T16:51:51.073

2

This worked for me. "Automatic metric" works by prioritizing the connection with the highest link speed. Manaully changing the setting means you can specify which connection you want to give priority to. https://support.microsoft.com/en-us/help/299540/an-explanation-of-the-automatic-metric-feature-for-ipv4-routes

– user2924019 – 2017-04-10T10:20:32.740

1On Mac OS, the same thing is accomplished in SysPref > Network > [Gear icon] > Set Service Order... and setting Wifi to top priority. – Demis – 2017-10-10T18:38:00.683

How on earth did you figure that out? – CodyBugstein – 2019-12-04T03:16:35.920

3

Using a static IP and removing the default gateway worked for me.

Before doing anything, run a command prompt and type in IPConfig /all. Note the DNS server address, and whether you're using DHCP or not.

Go to Network and Internet settings in Windows, then Change Adapter settings.

Select the wired connection, then edit its properties. Select Internet Protocol Version 4 (TCP/IPv4) and edit the properties. Select Use the following IP address and type in a static address. This is probably assigned to you by an administrator. Leave the Default gateway blank. A subnet mask that will usually work is 255.255.0.0. You also need the IP of your DNS server from above, if applicable.

Mahen

Posted 2014-04-10T19:59:08.597

Reputation: 39

1

I had a bit different case:

My LAN network is used as a infraned VPN and also as the Cisco and Email internet with proxy settings.

If i set the metric 1 to LAN and metric 2 to Wifi, wifi don't works.

If i set the metric 2 to LAN and metric 1 to wifi, Outlook and Cisco dont' works but intranet do.

If I try any configuration remapping de gatways and DNS with IP static anithing works in LAN because i'm on a subdomain DNS without acces or Knowledge of it's IP.

So finnally I've ended up setting Wifi to metric 2, LAN to metric 1 (All dhcp enabled and ip dinamic all by default just changed the metric) Then i download virtualbox and use the Tiny W7 iso of 800mb. I say to virtualbox to use Wifi network driver to the virtual machine and uala free proxy internet conection.

Hope it helps somewone.

Arngue

Posted 2014-04-10T19:59:08.597

Reputation: 111

0

Well same problem with me and only thing was that WiFi had same local IP to connect! I mean they were: LAN (cable conected) router IP: 192.168.1.1
WiFi router IP:.................192.168.1.1!

so both give same IP group for all network devices, 192.168.1.x

So i guess Win7 got confused every time you are connected simultaneously to both networks no matter what priority you give to them in advanced settings!

so I just thought to try to use different IP groups like:

LAN: 192.168.1.1 WiFi: 192.168.2.1 and now all works just fine together! :) Meaning, windows can make now the difference betweek the 2 networks, which is not possible only by name difference!

Good luck!

Kithan

Posted 2014-04-10T19:59:08.597

Reputation: 1

0

I am on windows 10. I right clicked on the network icon, the chose 'change adapter options' Then, right clicked on the ethernet connection to select its properties. I then unticked "Internet Protocol Version 4 (TCP/IPv4)...pressed okay and voila. i can browse with my next router option. Seems after this my locally connected devices couldn't connect so i just re-enabled TCP/IPv4. Still connected

Kelvin Medcine

Posted 2014-04-10T19:59:08.597

Reputation: 1