# Http request not working on device but works on cordova browser

**URL:** <https://forum.ionicframework.com/t/http-request-not-working-on-device-but-works-on-cordova-browser/170525>\
**Category:** Ionic Native\
**Created:** [August 6, 2019, 5:41am UTC](https://forum.ionicframework.com/t/http-request-not-working-on-device-but-works-on-cordova-browser/170525 "2019-08-06T05:41:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhashi1](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/prabhashi1/32/133655_2.png) [@prabhashi1](https://forum.ionicframework.com/u/prabhashi1)\
**Post date:** [August 6, 2019, 5:41am UTC](https://forum.ionicframework.com/t/http-request-not-working-on-device-but-works-on-cordova-browser/170525/1 "2019-08-06T05:41:36Z")

</div>

I’m working on an app with a node js server (localhost) and my app works fine with

> ionic cordova run browser

But it’s not sending request to the server when I run on my android device with the command

> ionic cordova run android

---

<div class="post-metadata">

**Author:** ![prabhashi1](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/prabhashi1/32/133655_2.png) [@prabhashi1](https://forum.ionicframework.com/u/prabhashi1)\
**Post date:** [August 6, 2019, 5:45am UTC](https://forum.ionicframework.com/t/http-request-not-working-on-device-but-works-on-cordova-browser/170525/2 "2019-08-06T05:45:50Z")

</div>

I resolved my problem by changing my localhost url to the ip address  
change  
back\_end\_URL: ‘[http://localhost:3000/](http://localhost:3000/)’  
to  
back\_end\_URL: ‘[http://192.165.5.201:3000/](http://192.165.5.201:3000/)’
