java.net.ConnectException: fail to connect to localhost/127.0.0.1(port 8080): connect failed:ECONNREFUSED….(Codename One App)

前端 未结 3 1120
深忆病人
深忆病人 2020-12-14 12:24

After build android application , I scanned the generated QRcode and install the application on galaxy s4 successfully. But when I try to do some search using the app I got

3条回答
  •  醉梦人生
    2020-12-14 12:43

    From the emulator, 127.0.0.1 refers to the emulator itself - not your local machine. You need to use ip 10.0.2.2, which is bridged to your local machine.

    HTH!

提交回复
热议问题