Skip to content

ionic serve --address not working #1748

@Uriel96

Description

@Uriel96

It seems like the newer version of ionic (2.1.12) doesn't work as expected in the cli.
Last version of ionic 2 (don't remember with exactitude the version).
When I used:

ionic address

it showed me whether I wanted it on localhost or a chosen ip address, but now it doesn't show anything.
Then I try using:

ionic serve --address AN_IP_ADDRESS

and i get the following error:

Uhoh. Got error listen EADDRNOTAVAIL 192.168.15.2:35729 ...                 Error: listen EADDRNOTAVAIL 192.168.15.2:35729
    at Object.exports._errnoException (util.js:1026:11)                             at exports._exceptionWithHostPort (util.js:1049:20)
    at Server._listen2 (net.js:1244:19)                                             at listen (net.js:1293:10)
    at net.js:1403:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)                  at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRNOTAVAIL 192.168.15.2:8100
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at Server._listen2 (net.js:1244:19)
    at listen (net.js:1293:10)
    at net.js:1403:9
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)

I have searched in other posts, but without success.
Please help me, it's getting frustrating because I want to test it on the browser of my phone.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions