SimpleChat example can't connect

Post here all your questions related with SmartFoxServer Java API

Moderators: Lapo, Bax

mattupstate
Posts: 1
Joined: 12 Jan 2011, 15:53
Location: Brooklyn

SimpleChat example can't connect

Postby mattupstate » 12 Jan 2011, 16:01

I can connect to SmartFox on localhost:9339 with the admin tool just fine. But the Android SimpleChat example can't connect via 10.0.2.2:9339. Just getting this error in LogCat...


01-12 12:31:21.564: WARN/SmartFoxClient(263): Socket Error: Could not establish a connection!
01-12 12:31:21.564: WARN/SmartFoxClient(263): java.lang.Exception: Could not establish a connection!
01-12 12:31:21.564: WARN/SmartFoxClient(263): at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:68)
01-12 12:31:21.564: WARN/SmartFoxClient(263): at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1223)
01-12 12:31:21.564: WARN/SmartFoxClient(263): at it.gotoandplay.example.android.SimpleChat.SimpleChat$2.run(SimpleChat.java:167)


I know this probably sounds like a total n00b question but I just wanted to put it out there and see if anyone might know a quick fix.

Mind you this is on OS X

Thanks

Return to “Java2SE / Android Client API”

Who is online

Users browsing this forum: No registered users and 2 guests