Unable connect with server when running with cordova

When i run my app using ionic serve it works fine. But when i use the command ionic cordova run android --livereload , it doesn’t hit on server and gives net::ERR_CONNECTION_REFUSED error.

few days back when i was running the app with ‘ionic cordova run android --livereload’ command i was getting an option to select the ip address but now it doesn’t .

Please …Need help. Stuck from last 2 days


Ionic Info:

   Ionic CLI                     : 5.2.0 (C:\Users\FUJITSU\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.4.2
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.3.9
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.5.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, (and 7 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.7

System:

   NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.9.2
   OS     : Windows 10