SmartFox server is widely used for multiplayer games. It can be easily integrated with different technologies like Apache Flex, Unity 3D, Android, IOS, Java , WIndows and C++. SmartFoxServer comes with a rich set of features, an impressive documentation set, tens of examples with their source, powerful administration tools and a very active support forum
» SmartFoxServer 2X Installation
The installation of the SmartFoxServer 2X platform is a very simple operation that requires only a few steps. We recommend to review the system requirements and proceed consulting the specific installation guide for the operating system of your choice.
» System Requirements
SFS2X is a truly multi-platform solution supporting all major operating systems capable of running the Sun/Oracle Java Virtual Machine (JVM). This includes Windows (all versions), Linux, Mac OS X (10.5+) and other Unix variants.
In order to evaluate and develop with SFS2X you just need 64MB of free memory and a 1.0Ghz processor. For production environments we recommend a machine with at least 512MB of physical RAM and a 2.0Ghz processor.
Installing under Windows Installing under Linux Installing under Mac OS X Installing under other Unix variants A step-by-step video tutorial showing how to install SmartFoxServer is also available in our YouTube channel.
RUNNING SFS2X IN THE CLOUD
If you want to deploy SmartFoxServer 2X "in the cloud" (Amazon EC2 environment for example), you may consider using the RightScale platform. RightScale offers an advanced system for virtual servers management based on what they call ServerTemplates. We created a specific template which takes care of installing and configuring SFS2X automatically: in a few click you can have a SmartFoxServer instance up and running at no cost (except those of the cloud environment itself) and without having to deal with the installation and configuration tasks described in this page.
You can watch an introductory overview on SmartFoxServer 2X in the RightScale platform by accessing this video in our YouTube channel.
Also, detailed informations on the SFS2X ServerTemplate are available on the following pages: - Introduction to the SmartFoxServer 2X ServerTemplate - ServerTemplate detailed information and operations runbook
» Post-installation tasks
After the installation your SFS2X instance is ready to be started. By default the server binds exclusively the localhost IP address (127.0.0.1) on the default TCP port 9933. This will enable you to immediately test the server locally without worrying of security problems. Only your local machine will be able to talk to the server initially.
In order to begin your evaluation just start the server and point your browser to http://localhost:8080. This will bring up the welcome page referencing the Administration Tool and some example applications.
» Local firewall settings
If you have any problems accessing the server locally we recommend to check the settings of your personal firewall (every recent OS today provides one). You should make sure that traffic for TCP port 9933 is allowed bidirectionally.
» Exposing the server to the local network
In order to allow other computers in the LAN to access your SFS2X instance you will have to configure the server to listen on your private LAN address. Launch the Administration Tool, choose the Server Configurator module in the sliding Administration modules panel on the left and add one or more local addresses to the list of bound IPs.
Click on the Add button. The list of available IP addresses will be auto-detected and presented in the dropdown. Select one of the available addresses, and leave the the other values to default (unless you need to change port number). Finally hit Submit and restart the server.
» Exposing the server to the outside world
In order to make the server available publicily over the internet you will probably need the help of a router and setup port-forwarding, also known as NAT service. If your server hardware is directly connected to the internet this step is not necessary and you can skip this section entirely.
Setting up the NAT on your router will allow you to map your public IP address and port to the physical machine inside your network that runs the service (SFS2X in this case). In other words when the router will receive data on TCP port 9933 (SFS2X default) it will redirect those packets to the machine in your LAN running SmartFox.
A specific step-by-step guide on how to configure your router cannot be provided here because each brand and model differs from the others. We highly recommend to check the documentation coming with your router and follow their instructions. Typically it's a very quick operation that can be done via a convenient control panel.
If you are unsure about what your public address is, simply check this website. For more help on port forwarding we also suggest this website.
FINAL NOTE All the examples provided with SFS2X are pre-configured to connect to 127.0.0.1:9933 (the localhost). In order to use them when your server is exposed in the LAN or the internet you will have to change the IP address in the xml configuration file (usually called sfs-config.xml) bundled with each example.
» SFS2X setup on a remote server
In order to setup SmartFoxServer 2X on a remote machine, for example an Amazon EC2 instance, after the installation you have to make some manual changes to the configuration before being able to access the Administration Tool. You should follow these steps: locate and open (in a text editor) the main SFS2X xml configuration file: {sfs-install-dir}/SFS2X/config/server.xml; under the
No comments:
Post a Comment