webpack-dev-server Version: 3.1.1
[x] This is a bug
Can reach the site when use local IP.
Cannot reach the site when use local IP.
192.168.0.101 (example).useLocalIp option: webpack-dev-server --mode development --hot --open --useLocalIp192.168.0.101:8080 in browser
This site can鈥檛 be reached
192.168.0.101 refused to connect.
127.0.0.1:8080 or localhost:8080, it works fine.Adding --host 0.0.0.0 fixed this for me.
192.168.0.101 is not local ip, use 0.0.0.0 as above if you want to attach dev server to all ip or use directly 192.168.0.101
Adding --host 0.0.0.0 could not fix this for me.
Works with webpack-dev-server --mode development --host 0.0.0.0 --hot --open --useLocalIp
Works with
webpack-dev-server --mode development --host 0.0.0.0 --hot --open --useLocalIp
thank you so much!
Most helpful comment
Works with
webpack-dev-server --mode development --host 0.0.0.0 --hot --open --useLocalIp