Home > Products > 123 Flash Chat > Buy
123 Flash Chat
Introduction
Requirements
Server Requirements
Supported Platforms
Hardware requirements
Java Virtual Machine(JVM) Requirements
Port requirements
Client Requirements
Hardware Requirements
Flash Player Requirements
Installation
Overview of files
Installing Chat Server
Windows NT/2k/XP
Windows Visa
Linux
Mac Operating System
Other Unix Operating System
Web server
Insert code
Easy Way
Advanced Way
Configuration
Server Configuration
Fcserver.xml
Connection Configuration
Global Configuration
Server.xml
General Configuration
User Configuration
Log Configuration
Filterwords Configuration
Robot Message
Server API
Modules
Logo Configuration
<room_id>.xml
Client Configuration
Client.xml
Skin Configuration
Predefined Message
Change Private Message Location
flashEmotion configuration
Client Admin Panel
Integrate Database Configuration
Chat Modules
Moderate chat module
Invisible admin chat module
Change nickname module
Pocket-pc & banner chat module
Audio-Video module
Encrypt-message chat module
Event-chat module
Image-transfer module
White-board module
Flash Media Server Setting
Buddy-List module
Visual Avatar Chat Module
Chat Room Remote Controller (MSN edition)
How to customize skin
Programmers Tools
Server API
Get Server Running Status
Send command to server to operate real-time data
Add room
Delete room
Broadcast
Private message
Client parameters
init_user and init_password
init_nickname
init_root
init_room and init_room_pwd
init_lang
init_skin
Admin mode
init_ad
Loading background
init_private and init_private_message
init_listroom
init_invisible
Avatar Chat Parameters
Lite Client
User Profile Interface
Cross Proxy
configuration
Home -> Manual

Connection Configuration

Open the configuration file fcserver.xml

In the Connection Section, you can set two servers and listen to two ports.

primary-server

secondary-server

There are four reasons as to why there is a second server port option. They are listed below:

1. Any version before Flash Player 7 only allows access on a high port (1024-65535) due to security reasons, while a low port is forbidden. If you are okay with high port you will not need to set secondary-server. However if you need to set port lower than 1024, you will need a secondary-server.

2. If the port of your primary-server is lower than 1024 like 80, then only users with Flash Player 7 or newer versions will be able to access the chat while users with flash player 6 can't.
In this case a secondary-server will be necessary. The port for the secondary server should be greater than 1024, which will allow users with an earlier version of Flash Player to access chat.

3. If you are going to set a high port for your primary-server, then usually you will not need a secondary-server. You will be able to leave the option as default: enable="off".

4. Using two servers with two ports is just a temporary solution while some users are still using Flash players earlier than version 7.
When Flash player 7 or higher version becomes mainstream, we will take off the secondary-server for future versions of 123 Flash Chat.

To help understanding, please study two tables below:

Parameter

High port (1024-51127)

Low port (<1024)

>=Flash player 7


Primary server

*
secondary server

Table1

Parameter

High port (1024-51127)

Low port (<1024)

>=Flash player 7


Primary server

*
(unnecessary)

Table2

To modify the Parameters, please refer to the table below

Parameter

Type

Default Value

Description

port

Number

51127

The server port must be identical with the port value in client.xml.

ip

String

*

Set the Server address.
A default "*" means the chat server will bind to all IP addresses of your server.
The host value in client.xml can be a random IP address or any domain name which points to this IP address. Either way, clients will be able to connect to the server.
If you set IP address of the server to the specific IP address of your server, then the chat server will only bind to this IP. This will mean that in client.xml, to connect the chat server, you can only use this specific IP address or the domain name which points to this IP address.

To modify the Parameters, please refer to the table below:

Parameter

Type

Default Value

Description

port

Number

35555

The server port must be identical with the port value in client.xml.

ip

String

*

Set the Server address.
A default ¡°*¡± means the chat server will bind to all IP addresses of your server.
The host value in client.xml can be a random IP address or any domain name which points to this IP address. Either way, clients will be able to connect to the server.
If you set IP address of the server to the specific IP address of your server, then the chat server will only bind to this IP. This will mean that in client.xml, to connect the chat server, you can only use this specific IP address or the domain name which points to this IP address

enable

String

On

Enable or disable the http server

documentRoot

String

../client

The directory out of which you will serve your documents. By default, all requests are taken from <123flashchat installed directory>/client directory.

maxUPLoadSize

numbers

1024

Setting the max file can be uploaded to the server, if the value less than or equals to 0, this means the server will not accept any upload files.

 

cross-domain-policy

123 Flash Chat Server start using the cross-domain-policy to ensure security.

<cross-domain-policy>

<allow-access-from domain="*" />

</cross-domain-policy>

By default it permits access to the connection originating from any domain.

To limit access from a specific domain name, you can configure your server in the following way:

<cross-domain-policy>

<allow-access-from domain="www.mydomain.com" />

<allow-access-from domain="*.mydomain.com" />

</cross-domain-policy>

To allow multiple domain names to be accessible you can configure your server in the following way:

<cross-domain-policy>

<allow-access-from domain="www.myfriendsdomain.com" />

<allow-access-from domain="*.mydomain.com" />

<allow-access-from domain="11.22.33.44" />

</cross-domain-policy>

max-connections-per-ip

<!-- max-connections-per-ip

Connection limit of each IP. By default it is "10".

If configure it to "0", then one IP can login unlimited connections, this can be used for performance test. -->

<max-connections-per-ip>10</max-connections-per-ip >

In current version, the cross-domain-policy is now enhanced in this way:
not only all connections originating from domain which is not in the allow-access list is forbidden, those connections originating from local computer by launching SWF file are now denied, too.
Only connections from allow-access list can access chat.
(Of course you can set it to permit access from any domain.)

updated at 2008-2-28


Warning: include(/home/daniel/www/footer.php) [function.include]: failed to open stream: No such file or directory in /home/daniel/www/htdocs/server_help.php on line 14

Warning: include() [function.include]: Failed opening '/home/daniel/www/footer.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/daniel/www/htdocs/server_help.php on line 14