Why did webpack-dev-server localhost reject our connection request?

unable to open a web page directly with webpack-dev-server configuration

the environmental background of the problems and what methods you have tried

add to package.jspn scripts-- host 192.168.54.107 can be accessed with ip

related codes

"scripts": {

"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 192.168.54.107"

what result do you expect? What is the error message actually seen?

localhost rejected our connection request


it is recommended to directly modify the host of devWebpackConfig to 0.0.0.0

Menu