# Unable connect with server when running with cordova

**URL:** <https://forum.ionicframework.com/t/unable-connect-with-server-when-running-with-cordova/167500>\
**Category:** Ionic Framework\
**Created:** [June 29, 2019, 7:16am UTC](https://forum.ionicframework.com/t/unable-connect-with-server-when-running-with-cordova/167500 "2019-06-29T07:16:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shyni](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@shyni](https://forum.ionicframework.com/u/shyni)\
**Post date:** [June 29, 2019, 7:16am UTC](https://forum.ionicframework.com/t/unable-connect-with-server-when-running-with-cordova/167500/1 "2019-06-29T07:16:23Z")

</div>

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

```auto

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

```
