Is this a bug? Vite showing 2 hosts when using --host. #9484
-
Hi all, I have a bit of a weird issue with vite server that's a bit of a nuisance but most importantly, one which I cannot determine the source of. When I use the --host flag, two network addresses appear in the console (this has been happening for a few months, but only started bugging me lately). One of these addresses is non-functional, as in nothing is served on it - the second one. The machine is windows 10, working from integrated terminal in VSCode. What other info is useful for diagnosing such issues? Can someone confirm if this is intended behaviour, although it doesn't seem to have much purpose, so i'm doubtful. If this is indeed a bug, I can start an issue for it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It's not a bug. Vite will show every IP of network interfaces there because Vite will listen to them. |
Beta Was this translation helpful? Give feedback.
It's not a bug. Vite will show every IP of network interfaces there because Vite will listen to them.
The reason why one of them is non-functional is likely because something (like firewalls) are blocking the request. (Vite cannot detect whether the request was blocked)