#Wi-Fi connection while on Ethernet

70 messages · Page 1 of 1 (latest)

steady zodiac
#

I want my PC to automatically connect to the Wi-Fi when i turn it on.
I click on Automatically connect on the wi fi.
But when i turn my pc on it won't connect automatically while im already connected through ethernet.

There's a way to be able to connect automatically through wifi even if im already on LAN?

steady zodiac
#

help

#

<@&787033266225938472>

glad oriole
#

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.

steady zodiac
glad oriole
#

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.

woeful slate
steady zodiac
#

i need to ssh to a device which is connected to a different local network

woeful slate
steady zodiac
#

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

steady zodiac
#

@glad oriole it doesn't seems to work

woeful slate
soft quest
#

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

woeful slate
#

I dont have it auto-connected to wifi...in my case..
So its probably your... hyper V network setup!..

steady zodiac
soft quest
#

Apparently using better v makes that happen

steady zodiac
#

Windows does not want to connect because it sees that im already connected with ethernet

soft quest
#

Not here, never. Always automatic

woeful slate
steady zodiac
#

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?

woeful slate
#

if you want to stay at wifi...and use it for the internet...you can disable the ethernet adapter.... a temporary solution

steady zodiac
#

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?

woeful slate
steady zodiac
#

Obviously ethernet needs to be used for internet

soft quest
#

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

woeful slate
steady zodiac
#

I could probably write my self a powershell script but i find it a “gimmick” solution tbh

woeful slate
#

I will look into it...if there is a way to force windows to change this behaviour at your current setup!

steady zodiac
# woeful slate I will look into it...if there is a way to force windows to change this behaviou...

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

woeful slate
#

before running any script.... you can try the metric value....set in the properties of ipV4

soft quest
#

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

steady zodiac
woeful slate
steady zodiac
woeful slate
#

Remember this will work...if you always use the same wifi network and set it as "connect automatically"

steady zodiac
#

the wifi network has a different name than the ethernet

woeful slate
steady zodiac
#

ah ok yes it is

woeful slate
#

on my laptop....wifi connects first... then follow up by...ethernet... unlike earlier...wifi does not get disconnected!

steady zodiac
#

because ethernet is connected first

woeful slate
steady zodiac
steady zodiac
#

@woeful slate it does work

#

thank you

woeful slate
steady zodiac
#

ethernet