'How to define the IP address of the IONIC Server?
I try to run an IONIC Web-App in my 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 the IP ADDRESS of the IONIC SERVER?
Solution 1:[1]
This is definitely possible with ionic.
Use ionic serve --external
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
