Error: listen EADDRINUSE 0.0.0.0:53703 - Serve to the browser (ionic serve)

Launching for serve (This may take a while)...
Starting Ionic dev server (live reload: true)
[WARN] The --nobrowser option has been deprecated. Please use --no-open.
Starting app-scripts server: --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[21:19:20]  watch started ... 
[21:19:20]  build dev started ... 
The Ionic live reload server exited unexpectedly
Error in the Ionic live reload server:
Error: listen EADDRINUSE 0.0.0.0:53703

launch.json

{
            "name": "Serve to the browser (ionic serve)",
            "type": "cordova",
            "request": "launch",
            "platform": "serve",
            "cwd": "${workspaceRoot}/src",
            "devServerAddress": "localhost",
            "sourceMaps": true,
            "ionicLiveReload": true,
            "devServerTimeout": 1200000
        },

ionic info

cli packages: (C:\Users\2bher\WebstormProjects\ionic3-angular4_2\node_modules)

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 1.3.7
    Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.4.0 windows 5.0.0
    Ionic Framework    : ionic-angular 3.4.2

System:

    Android SDK Tools : 26.1.1
    Node              : v6.11.4
    npm               : 3.10.10
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\2bher\AppData\Local\Android\sdk

Misc:

    backend : pro

Each time comes back and I need to restart my pc to debug typescript.

Also tried

taskkill /im chrome.exe /f
adb kill-server 
adb start-server
adb devices

None of that worked also.

Any ideas?

The solution worked for me is:

Open task manager, find NodeJS server process and kill all.

5 Likes

You can run Ionic server in another port by using a command like:

ionic serve --port 8101

Thanks it working well.