react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

Cant open on mobile . #282

Closed yanislav-igonin closed 8 years ago

yanislav-igonin commented 8 years ago

Hello,

I am making mobile version of app using this generator. I have a problem open my application on my phone. I go to 192.168.1.6:8000(my desktop ip in local net on which webpack server is running) on mobile Chrome, but it tells me that site can't be reached. In the same time I've tested it on simple express server and everything runs well.

Please, advice.

Best regards, Yan.

sthzg commented 8 years ago

Hi @BigSoviet, by default the server is bound to localhost, which is only accessible from the same machine.

Please try changing 'localhost' in server.js:#18 to '0.0.0.0'. This should make your app accessible from within your local network. (* If that doesn't work, it could also be a firewall blocking inbound access to your machine.)

yanislav-igonin commented 8 years ago

Thank you very much, your advice has helped.