A
A
Alexander2021-03-12 23:13:29
local server
Alexander, 2021-03-12 23:13:29

Why can't several devices connect to the local Dev server?

I am writing an application in Vue-cli.
Vue-cli, for development, runs a server that is accessible via a link like http://***.***.**.***:8080/ on the local network.
Everything works well. Until the moment when only my computer connects. If I try to log in from a phone, another computer, tablet, then, with a high probability, instead of the application, I see a failed request with the ERR_CONNECTION_REFUSED code:

Unable to access site
The site http://***.***.**.*** cannot connect.
ERR_CONNECTION_REFUSED

If you close tabs on other devices, you may sometimes fail to connect. It could very well be a coincidence. But from my computer it connects always and quickly.
It feels like the local server, for some reason, simply ignores some of the requests. Either overloaded (the computer is already in old age and VSCode is still running on it, a browser with several active tabs (YouTube, Google Spreadsheets, Jira, and many others) so it is possible that there is simply not enough hardware power), or in the OS ( windows) some driver is not working / connected or it is not clear what else.
Question: what to do to find out the exact cause? And how can the problem be solved?

PS Google-peregouglit, did not find anything suitable for myself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-03-12
@yarkov Vue.js

And if you add it to vue.config.js, does it work?

devServer: {
    host: '0.0.0.0',
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question