The example project "Connector" can not connect to server

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

Phineas
Posts: 2
Joined: 15 Nov 2012, 07:48

The example project "Connector" can not connect to server

Postby Phineas » 15 Nov 2012, 09:00

Hello,
I am starting to learn SFS2x, and today I am testing the example project "Connector" in the tutorial. When I ran the project in simulator, it connect to the sfs successfully. However, when I depoly the project on my iOS device, it can not connect to the sfs which run on my iMac. I have do some setting on the config.xml in "Connector" project, this is my config.xml:

Code: Select all

<SmartFoxConfig>
   <ip>192.168.1.166</ip>
   <port>9933</port>
    <udpHost>192.168.1.166</udpHost>
   <udpPort>9934</udpPort>
   <blueBoxIpAddress>192.168.1.166</blueBoxIpAddress>
   <blueBoxPort>8080</blueBoxPort>
   <httpPort>8080</httpPort>
   <httpPollSpeed>750</httpPollSpeed>
   <zone>BasicExamples</zone>
</SmartFoxConfig>


And also I have configured my sfs. I added an ip address "192.168.1.116".

However, it just does not work. I do not know what is the problem?
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: The example project "Connector" can not connect to serve

Postby A51Integrated » 15 Nov 2012, 15:07

Make sure you're device is on a WiFi network that is local to that LAN. If it's using a G3 or similar connection, it won't be able to find those IP addresses.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Phineas
Posts: 2
Joined: 15 Nov 2012, 07:48

Re: The example project "Connector" can not connect to serve

Postby Phineas » 16 Nov 2012, 03:05

It does work now, thank you for your help.

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 22 guests