Ionic serve set host and port number


is possible to set host name and port number for $ ionic serve command.

If not, I would be very useful feature.

Right now its not possible, but you can always add a feature request for this on the CLI’s github page

Not documented but it is in the code as of 2014-04-29

Usage: ionic serve [http-port] [livereload-port] [options]

$ ionic serve 9100 9101 
Running serve task...
Running dev server at
Running live reload server at


This comes up as the first hit on Google, but it’s not true anymore. The right way to do it is by doing the following:

ionic serve -p 8101

ionic serve -a

makes it listen for

ionic run android -a 8100 not working