Hi,
I am using apis from smartfoxserver api central for java. I have try to connect to sfs with ip=127.0.0.1 and port=9339, but when i connect it gives java exception : socket error:could not establish a connection.
I dont know what is the problem, please help me. Thanks!
Yours faithfully,
vaibhav
Can't connect to smartfox server using java client api
Re: Can't connect to smartfox server using java client api
Hello,
I have exactly the same problem, when I try to connect to sfs server from a normal Java class with Main, It works without problem,
BUT when I tried to connect from Android Activity class using the same code It gives me these error :
Socket Error: Could not establish a connection!
I have SFS PRO 1.6.9 in Mac OS. I tested with Android 2.1 and Android 3.0 with the same error.
Can anyone give us help plz
I have exactly the same problem, when I try to connect to sfs server from a normal Java class with Main, It works without problem,
BUT when I tried to connect from Android Activity class using the same code It gives me these error :
Socket Error: Could not establish a connection!
I have SFS PRO 1.6.9 in Mac OS. I tested with Android 2.1 and Android 3.0 with the same error.
Can anyone give us help plz
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Re: Can't connect to smartfox server using java client api
Hey guys,
I cant help on the older SFS Java API. But did you try to look at some of the hints given in the Android tutorials for 2x?
http://docs2x.smartfoxserver.com/Exampl ... /connector
Maybe some of the ipv6 things are biting you
/Thomas
I cant help on the older SFS Java API. But did you try to look at some of the hints given in the Android tutorials for 2x?
http://docs2x.smartfoxserver.com/Exampl ... /connector
Maybe some of the ipv6 things are biting you
/Thomas
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund
Follow on twitter: http://twitter.com/thomas_h_lund
Re: Can't connect to smartfox server using java client api
Cab you please show the entire stack trace of the error? Also, did you try the examples coming with the API? Do they work for you?
Thanks
Thanks
Return to “Java2SE / Android Client API”
Who is online
Users browsing this forum: No registered users and 18 guests