It's possible to use smartFox with the web player of Unity?

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

cesar_azuero
Posts: 1
Joined: 09 Nov 2010, 19:23

It's possible to use smartFox with the web player of Unity?

Postby cesar_azuero » 09 Nov 2010, 19:33

Hi, I Need Help!!!!!

I'm trying to run the example (Simple Connect) that comes in the installer's smart fox 1.6, never connects to the server.
My settings it's as follow:
In the connectionGUI.cs:
IP: 192.168.0.37 (IP of my computer).

IP in the config.xml of the server:
127.0.0.1.

I'have done using flash and it works fine, i don't know why don't works with unity. Thanks!!!!
appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Postby appels » 09 Nov 2010, 20:05

you need to use a domain policy file for the webplayer.
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 09 Nov 2010, 20:57

Yeah - most likely its a missing policy server (if you use Unity 3.0). If it works from your editor, but not from webplayer - then its definitely the policy part.

You can either use the one referenced from the Unity documentation - or you can use SFS itself as policy server. All you need to do is add the security prefetch policy command before doing _any_ socket/network communication.

Various code examples are to be found in this forums about this

/Thomas
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 09 Nov 2010, 21:13

Oh - additionally if you use Unity 3, you should use the 1.2.7 version of the API - sticky in this forum!

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 2 guests