# IONIC5 Capacitor livereload

**URL:** <https://forum.ionicframework.com/t/ionic5-capacitor-livereload/196118>\
**Category:** Capacitor\
**Created:** [September 12, 2020, 2:17pm UTC](https://forum.ionicframework.com/t/ionic5-capacitor-livereload/196118 "2020-09-12T14:17:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupnesh](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@Rupnesh](https://forum.ionicframework.com/u/Rupnesh)\
**Post date:** [September 12, 2020, 2:18pm UTC](https://forum.ionicframework.com/t/ionic5-capacitor-livereload/196118/1 "2020-09-12T14:18:00Z")

</div>

I am not able to livereload my Ionic5 capacitor app.  
I have tried many steps -

- Laptop and mobile both are connected to same network (wifi)
- commands used  
**1-- ionic serve -\> npm run build -\> npx cap add android -\> npx cap copy android -\> npx cap sync android -\> ionic cap open android**  
**2–ionic serve -\> npm run build -\> npx cap add android -\> npx cap copy android -\> npx cap sync android -\> ionic cap open android --external --livereload**

in both situation livereload not working  
**"ionic cap run android"** not able to open android studio.

If their is any other approach than, please suggest me.  
Thank you.

---

<div class="post-metadata">

**Author:** ![netkow](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/netkow/32/137759_2.png) [@netkow](https://forum.ionicframework.com/u/netkow)\
**Post date:** [September 15, 2020, 1:28am UTC](https://forum.ionicframework.com/t/ionic5-capacitor-livereload/196118/2 "2020-09-15T01:28:05Z")

</div>

Take a look at the [live reload guide](https://capacitorjs.com/docs/guides/live-reload).

The `open` command doesn’t support the external/livereload options. If `cap run` doesn’t work, what is the exact error that you get?

`ionic cap run android -l --external`

---

<div class="post-metadata">

**Author:** ![Rupnesh](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@Rupnesh](https://forum.ionicframework.com/u/Rupnesh)\
**Post date:** [September 19, 2020, 8:57am UTC](https://forum.ionicframework.com/t/ionic5-capacitor-livereload/196118/3 "2020-09-19T08:57:09Z")

</div>

Got the issue, in my case, I need to execute the “ionic build” command first, then the run command.
