Ionic cordova run platform error

Hello,
I need some help debugging this issue that i have. I’m trying to make my ionic application run on a android device on localhost:8100 using livereload.

The comand that I run is:

ionic cordova run android -lc --address=localhost --device

Now. After the debug apk is built, on the device i get:

Application Error
net::ERR_CONNECTION_REFUSED
(http://localhost:8100/)

I get this error also if i try and run on emulator.
I can make it work without livereload. It seems that on adress=localhost and livereload this thing wont go and i need both. localhost for varius whitelisting (oauth services) and livereload for debugging. Also geolocation services work on localhost and i need those also.

Any help is greatly apreciated!

ionic version: 3.19.1
cordova: 8.0.0