Access webpack-dev-server through local network
Add to webpack.config.js:
var config = {
devServer: {
host: '0.0.0.0',
disableHostCheck: true
},
...
How to find the local IP address (on Ubuntu)
hostname -I
on Mac (source: https://apple.stackexchange.com/questions/20547/how-do-i-find-my-ip-address-from-the-command-line):
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'