#Wi-Fi connection while on Ethernet
70 messages · Page 1 of 1 (latest)
Open Settings and click on Network & internet.
Click on Advanced network settings and then on Change adapter options.
Right-click on your Wi-Fi adapter and select Properties.
Click on Internet Protocol Version 4 (TCP/IPv4) and then on Properties.
Click on Advanced and uncheck the box that says Automatic metric.
Enter a lower number (such as 10) in the Interface metric box and click OK.
Repeat the same steps for your Ethernet adapter, but enter a higher number (such as 20) in the Interface metric box.
Restart your PC and see if it connects automatically to the Wi-Fi.
Alternatively, you can also try to run the Network troubleshooter to diagnose and fix any network issues.
what does this metric thing?
Automatic Metric is a new feature in Windows that automatically configures the metric for the local routes that are based on link speed. The Automatic Metric feature is enabled by default, and it can also be manually configured to assign a specific metric.
why do you want to use wifi on your pc.... when you already have ethernet connected to that same pc?.....
two different routers with different local networks
i need to ssh to a device which is connected to a different local network
if you want to keep the local networks...separated... I guess you should be doing port forwarding!
i have two router
each router has it's own local network
and since i do not have a degree in networkings i just find more easy to connect via wifi to the other router
@glad oriole it doesn't seems to work
Answer (1 of 3): SSH work on both network WiFi and Ethernet, it simply need the connectivity between client (machine from which SSH connection is started) to server (machine on which SSH server is running).
In case you have both networks connected at the same time then first try pinging SSH serv...
Do you know what's interesting as I have Ethernet connected and my wi fi still auto connects and I never did anything intentionally to make that happen
Although I do have hyper V virtual networks setup so maybe that influences it
Oh maybe it's my Dell Optimizer
sort of a mess
I dont have it auto-connected to wifi...in my case..
So its probably your... hyper V network setup!..
You didn’t quite understood. I can be connected to multiple local networks and it works fine. The problem is that i want windows to automatically connect to wifi
Apparently using better v makes that happen
Windows does not want to connect because it sees that im already connected with ethernet
Not here, never. Always automatic
unfortunately.... windows will always prioritize one ....over the other....you can connect your wifi... but the data packet will be transfer via ethernet by default....
ssh works when i'm connect via wifi. but it use the ethernet for internet
which is how i want it
i just want to not reconnect every time i boot my pc
there's no registry hack? no script?
you can disable the adapter?... also you can go to the properites and disable the priority... but cant confirm it will stay that way!...
if you want to stay at wifi...and use it for the internet...you can disable the ethernet adapter.... a temporary solution
No i don’t want to use wifi for internet
What if i tell you that my router is connected via ethernet to the main router which my computer is connected to?
There’s a way to access the second router local network?
okay ...so you dont want to reconnect to ethernet?...
I want to boot my pc and find my self connected to wifi and ethernet
Obviously ethernet needs to be used for internet
Since it works for me I have to wonder if you could set it up the same way even if you don't use hyper v for daily work
so you want them both connected...automatically during startup?... everytime?
Does it make a difference? When i unlock my pc i want windows to be connected in wifi and ethernet.. thats the expected behavior
I could probably write my self a powershell script but i find it a “gimmick” solution tbh
the default behaviour of windows is...to always use ethernet and ignore wifi..altogether!
I will look into it...if there is a way to force windows to change this behaviour at your current setup!
Wi-Fi SSID
`$SSID = "FRITZ!Box 5 GHz"
Obtain Wi-Fi profiles saved on the computer...
$WiFiProfiles = netsh wlan show profiles | Select-String -Pattern ":.*"
foreach ($WiFiProfile in $WiFiProfiles) {
# Remove unnecessary character from the profile name
$ProfileName = $WiFiProfile -replace ".*: ","" -replace "`r",""
if ($ProfileName -eq $SSID) {
# If the SSID corresponds try to connect...
netsh wlan connect name=$ProfileName
break
}
}`
well if i manage to run this code at the startup of my pc it's done
for some reasons it won't format correctly the message
i'll put it into this folder and it should be done %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
you can attempt a powershell script... and set it in the task scheduler!
before running any script.... you can try the metric value....set in the properties of ipV4
The metric value I'm sure is what influences what is used first for a route when multiple paths are available and connected. It shouldn't influence anything about whether you connect to the ssid in the first place
Already tried did nothing
This script seems to work.
Did it work for you?...
Because the registry modification... worked for me!...if you want to try that is...
Tell me the registry modification i think its better than a script
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WcmSvc\Local.
Create the key named fMinimizeConnections ...set as registry DWORD (32bit) ....
Remember this will work...if you always use the same wifi network and set it as "connect automatically"
what you mean?
the wifi network has a different name than the ethernet
I meant this...
ah ok yes it is
on my laptop....wifi connects first... then follow up by...ethernet... unlike earlier...wifi does not get disconnected!
actually what happen with my pc is that wifi doesn't get considered at all
because ethernet is connected first
Yep!... thats why I tested it...and it worked for me so far!
i'll let you know if it work for me the next reboot
you are welcome!... just curious...do you see wifi first or ethernet icon displayed first?...
ethernet