Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Network ip prefers hyper-v virtual switch over actual network #761

Open
Ivanmatthew opened this issue Apr 16, 2023 · 2 comments · May be fixed by #763
Open

Local Network ip prefers hyper-v virtual switch over actual network #761

Ivanmatthew opened this issue Apr 16, 2023 · 2 comments · May be fixed by #763

Comments

@Ivanmatthew
Copy link

Description

WindowsTerminal_pJvT4H1m9E
Code_llGEHcQLCJ

In the attachment is shown it has two switches, the hyper-v default switch and a custom wsl switch, in the current use case it's the vEthernet default switch we're talking about.
Right now, when selecting local network, instead of using the proper ip address, it wants to make use of the hyper-v switch, which shouldn't be the case.

To reproduce, you should install hyper-v on your windows (11) machine. After setting up a default switch, which should happen when you either create your first virtual machine or start the hyper-v service, serve any node application.

Right now I used a temporary solution by manually disabling the eth interface through an administrator-ran powershell command:
get-netadapter -IncludeHidden|where-object {$_.interfacedescription -like "*hyper-v*"}|Disable-NetAdapter

I suggest that as a fix to either add an argument or setting to explicitly enable including hyper-v switches, or just filtering them out when listing the network interfaces at all.

Library version

14.2.0

Node version

19.4.0

Ivanmatthew added a commit to Ivanmatthew/serve that referenced this issue Apr 16, 2023
@Ivanmatthew
Copy link
Author

Alternatively, possible make an argument to define which network interface to choose?

@Ivanmatthew
Copy link
Author

Update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant