cocos2d-js with smartfoxserver in native app ios and android
-
- Posts: 1
- Joined: 04 Jan 2014, 11:09
cocos2d-js with smartfoxserver in native app ios and android
How to use cocos2d-js with smartfoxserver in native app ios and android. I tried connect (by javascript API) on web and success, but when connect in my android device (build apk file by cocos2d-js), it failed, status is "Connection failed: It the server running at all?". Do any one provide some solution for me, thank all.
Re: cocos2d-js with smartfoxserver in native app ios and and
Hi,
are you testing locally (e.g. localhost / 127.0.0.1)?
If so keep in mind that the localhost address in Android does not correspond to 127.0.0.1 but 10.0.2.2
Read here:
http://stackoverflow.com/questions/5806 ... -in-eclips
thanks
are you testing locally (e.g. localhost / 127.0.0.1)?
If so keep in mind that the localhost address in Android does not correspond to 127.0.0.1 but 10.0.2.2
Read here:
http://stackoverflow.com/questions/5806 ... -in-eclips
thanks
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 49 guests