Sometimes you may get an error message “ECONNREFUSED 127.0.0.1:8080” especially if you are having many bash terminals open and you spin multiple webservers. So if you just want to find and kill the process on the x port that is causing the trouble, in this
HTC published a very interesting infograph which shows the whole process of an Android update. It looks very interesting especially if you think how many stages each version has to pass. Have a look below.