Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Can't access localhost. Ionic Serve, Run and Build commands are broken

$
0
0

@tarciso_melo wrote:

Wherever I try to perform any of these commands, I get error messages:

  • ionic serve >>> Browser (Firefox or Chrome) do not connect do localhost. It only works if a set another IP using "ionic address" -> choose IP diferent from localhost -> "ionic serve".

  • ionic run android >>> "Error executing "adb devices": error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037" and other things (see below)

  • ionic build android >>> "java.io.IOException: Unable to establish loopback connection" and other things (see below)

-----IMPORTANT-----
1) I have been using Ionic for 15 days, running those commands succesfully several times.
2) These errors started to occurr after I manully close the command prompt and the Android Emulator windows in the middle of an "ionic emulate" operation (such a small thing could cause these problems?).

---System Status----
Ionic 1.7.13
Node 5.5.0
Cordova 6.0.0
NPM 3.3.12
Java JDK 1.7.0_45 and 1.8.0_71
Android SDK - Almost all packages (see: http://tinypic.com/r/2irr80l/9)
Windows 8.1

---Firewalls---
Antivirus: Kaspersky -> disabled
Windows firewall -> disabled

----System variables----
JAVA_HOME C:\Program Files\Java\jdk1.8.0_71
ANDROID_HOME C:\Users\EscolhaFacil\AppData\Local\Android\android-sdk
PATH C:\Users\EscolhaFacil\AppData\Local\Android\android-sdk\platform-tools;C:\Users\EscolhaFacil\AppData\Local\Android\android-sdk\tools;C:\Users\EscolhaFacil\AppData\Roaming\npm and dozens of other things

---Solutions that I tried, but didn't solved the problem----
1) adb kill-server then adb start-server
2) adb -P 5038 start-server (start ADB server on onther port, default is :5037)
3) adb -H 192.168.1.56 start-server (start ADB server on the same IP that I get "ionic serve" to work)
4) manually kill "adb.exe" on task manager

-----Complete ERROR LOGs---------
See: http://pastebin.com/ukbRhN1w

-----Complete nestat report---------
After 'adb start-server'
After 'ionic serve' for localhost (that didn't opened on the browser)

See: http://pastebin.com/YAEW3LrR
*PID 4552 - adb.exe
*PID 5340 - node.js

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles