Debugging app in linux

I am able to get logging working while running ionic in my android device. My system info are:

Machine info:

Distributor ID:	Ubuntu
Description:	Ubuntu 14.10
Release:	14.10
Codename:	utopic

cordova: 6.0.0
node: v0.11.14

On running “ionic run android --device -lcs” I get the following output:

Setup Live Reload
Running live reload server: undefined
Watching: 0=www/**/*, 1=!www/lib/**/*
Running dev server:  http://192.168.1.6:8100
Ionic server commands, enter:
  restart or r to restart the client app from the root
  goto or g and a url to have the app navigate to the given url
  consolelogs or c to enable/disable console log output
  serverlogs or s to enable/disable server log output
  quit or q to shutdown the server and exit

On device I see the following output:

Application Error
There was a network error (http://192.168.1.6:8100/)

What could be the problem?

Make sure both you device and the computer running ionic server are connected to the same network (either wifi access point or by setting up wifi hotspot on your phone/device and connecting to it from the computer).

The app on the device is trying to fetch all controllers/services/views etc (content of www, not plugins) from the computer instead of locally on the device.

If you can’t get both the device and the computer on the same network, consider running without the -lcs flag (and then no auto update, when you change your code you will have to run the command again to update the app on your device).