Page 1 of 1
Combining smartfox on a LAN with smartfox on the web
Posted: 17 Dec 2010, 13:47
by eventdave
We have developed a system in flash that allows users in the same room to communicate with each other via laptops or mobile devices. These are all connected on a LAN with a server running smartfox 1.6.7
This is all running fine, but we are looking to extend the functionality by having a second smatfox server on the web that can deal with web traffic.
What we then need to do is have the two smartfox servers talking to each other to share the data between the local users and the web users.
Is this sort of setup possible and are there any example of how to set this up? If it is not possible, do you have any suggestions to how we can achive this?
Many thanks
Dave
Posted: 17 Dec 2010, 18:41
by BigFIsh
You could have just have one SFS server to handle web + LAN. There would be two versions of flash application - one pointing to an external IP address, and other pointing to a local IP address.
Nevertheless, what you're requesting for can be achieved using clustering. See
http://www.smartfoxserver.com/clustering/ for more info
Posted: 20 Dec 2010, 11:46
by eventdave
Thanks for you reply, but could you clarify a little further.
We have a smartfox server that runs on a LAN that allows people in the same conference room to connect to smartfox and work with our application.
This server could be in any conference room anywhere in the world, and essentially allows a controlled group of userd to interact in that conference room.
If we wanted to extent to external users, what would the setup be? Can we allow internet users access to this local smartfox server? Is that what you are suggesting? Or are you suggesting having an internet based smartfox server which is available to all users?
Our worry there would be that the local users are the priority and we feel that keeping the smartfox server in our local server allows us to have a more reliable system for our local users.
Many thanks
Dave
Posted: 20 Dec 2010, 20:55
by BigFIsh
For example..
Server config.xml settings:
- IP address = * (bind all)
- Port = 9339
Publish application with the following settings (which would be used by people inside the network):
- IP address = 192.169.2.6 (the internal IP address of your server)
- Port = 9339
Publish another application with the following settings (which would be used by people outside the network):
- IP address = 218.168.23.234 (the external IP address of your network)
- Port = 9339
Both application would connect to the same server.