I try to run an Ionic Web-App in my own network, to reach the website by my smartphone. To serve I run the following command in the root of the project:
ionic serve --address 192.168.13.27
But I get the following error message:
[08:34:24] ionic-app-scripts 1.0.0
[08:34:25] ionic-app-script task: "serve"
[08:34:25] TypeError: Cannot read property 'host' of undefined
TypeError: Cannot read property 'host' of undefined
at onReady (C:\Users\mkoch\Documents\Entwicklung\mobile.dev\node_modules\@ionic\app-scripts\dist\serve.js:61:22)
at C:\Users\mkoch\Documents\Entwicklung\mobile.dev\node_modules\@ionic\app-scripts\dist\serve.js:55:13
at process._tickCallback (internal/process/next_tick.js:103:7)
at Module.runMain (module.js:577:11)
at run (bootstrap_node.js:352:7)
at startup (bootstrap_node.js:144:9)
at boot strap_node.js:467:3
If I run serve with --lab or without anything else, it runs. I also do some reseach on the internet, without an success.
How or where can I define theIP ADDRESS
of the IONIC SERVER
?