adrnsoh / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Connection to local port 9000 error on Codename One Live Android app. #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install the Codename One Live app to android
2.Log in to cloud server

What is the expected output? What do you see instead?
I do see my builds listed, but immediately a dialog is thrown with a 
connectexception, 127.0.1.1 port 9000 connect failed.  The dialog keeps popping 
up regardless of clicking cancel or retry.

What version of the product are you using? On what operating system?
Codename One LIVE version 1.0 on Samsung Galaxy Nexus - Android ICS.

Original issue reported on code.google.com by 1815...@coolman.ca on 9 Mar 2012 at 10:51

GoogleCodeExporter commented 9 years ago
Thanks, that's actually 2 bugs one of which I would never have found.
It seems that in Linux getting the hostname of your machine returns the 
loopback (hence 127.0.0.1) so the device wouldn't be able to communicate 
directly with the resource editor. To fix this properly you will need a new 
version of the designer with live preview.
I will also update the live preview application and maybe just upload it to 
Android Market for easier deployment.

Original comment by shai.almog on 10 Mar 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Verified this is working now on build 20120311, am able to connect and view my 
gui elements.  I'm getting a lot of ConnectExceptions on the GuiBuilder side 
though, every few seconds, here's the stack:

java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:478)
    at java.net.Socket.<init>(Socket.java:375)
    at java.net.Socket.<init>(Socket.java:189)
    at com.codename1.designer.LivePreview$3.run(LivePreview.java:311)

Original comment by 1815...@coolman.ca on 12 Mar 2012 at 1:55