Combining smartfox on a LAN with smartfox on the web

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
eventdave
Posts: 18
Joined: 02 Jul 2010, 14:12

Combining smartfox on a LAN with smartfox on the web

Post 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
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post 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
Smartfox's forum is my daily newspaper.
eventdave
Posts: 18
Joined: 02 Jul 2010, 14:12

Post 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
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post 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.
Smartfox's forum is my daily newspaper.
Post Reply