Flash Chat Software, Online Webcam Chat ,Java Chat Server, Website Messenger Software, Live Help Chat


Home » How to configure connection?
Tutorials

How to configure connection in 123 Flash Chat Server Software

How to configure connection?

Only proper configuration on both of the chat server and chat client can make connection established between them.

1. server configuration

To configure connection in <123FlashChatServer installed DIR>\server\etc\fcserver.xml, edit "connection" section.

<Connection>
<primary-server ip="*" port="51127" />
<secondary-server ip="*" port="51128" enable="off" />

<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
</Connection>

You can set double servers and listen to double ports.

primary-server


secondary-server



Why there's a second server port option? The reasons are:

1) flash player earlier than 7 only allow access on high port (1024-65535) out of security reason, while low port is forbidden. If you are okay with high port, you don't have to set secondary-server. Only if you want to set port lower than 1024, you need a secondary-server.
(See table1 below)

2) If setting the port of primary-server to lower than 1024, like 80, then only users with flash player 7 can access chat while users with flash player 6 can't.
In this case secondary-server is necessary. Its port should be greater than 1024, which allow users with earlier flash player to chat.
(See table1 below)

3) If setting high port for primary-server, then usually you don't need secondary-server, you can leave it as default :enable="off" .
(See table2 below)

4) It's just temporary solution to set two servers because some of users are still using flash player earlier than 7.
When flash player 7 becomes more and more popular, we'll remove this secondary-ser3ver function in future version.

To help understanding, please study two tables below:

High port (1024-51127)Low port (<1024)
>=Flash player 7
Primary server
< Flash player 7
secondary server

table1

High port (1024-51127)Low port (<1024)
>=Flash player 7
Primary server
< Flash player 7
(unnecessary)

table2

Recommended Simple Setting:

Leave the connection configuration as default.


Advanced Setting:

To bind your chat server to low port like 80 or 443, here's the solution:
(See above table1.)

For primary-server, set a port lower than 1024, like "80" or "443".
While for secondary-server, set a port higher than 1024.

With such a connection setting, secondary-server is only useful to users with earlier version of flash player. (As we stated before, flash player earlier than 7 only allow access on high port (1024-65535).)

IP configuration:

The server host can be set to "*" or any specific IP address, and the host value in client configuration has to be identical. If server host="*", then client host can be any random IP or domain name which points to the IP; If server host= a specific IP, the client host can only be the IP, too, or a domain name which points to the IP.

2. client configuration

Parametervaluetype Description
init_groupdefaultStringthe group’s value
init_host * Stringthe primary server’s host value
init_port 51127Number the primary server’s port value
init_host_s * Stringthe secondary server’s host value
init_port_s 51128Number the secondary server’s port value
init_http_s * Stringthe HTTP server’s host value
init_http_s 35555Number the HTTP server’s port value

These 7 parameters are added in version 6.8 in order to replace the Connection and Group configuration originally in the client.xml which was removed there now, the admin should configure the 7 parameters to make the 123flashchat.swf communicate with the chat server properly if necessary.

Please leave the init_host, init_host_s and init_host_h value to "*" if the chat server and the web server (which hosts 123flashchat.swf file) are located on the same server. If the SWF file is on another web server, you should configure the init_host, init_host_s, init_host_h value according to the chat server domain or IP address. The init_port, init_port_s and init_port_h value must be identical with the ones in fcserver.xml.

Notice: if you are upgrading to the current version from the older version (before version 6.8), don’t forget to add the 7 parameters to your HTML page which include the 123flashchat.swf file, otherwise the 123flashchat.swf file will use the default value init_host="*", init_port=51127 and init_group="default" to communication with the chat server.

Example:

<script src="123flashchat.js"></script>
<script language="javascript">

init_host="*";
init_port=51127;
init_host_s="*";
init_port_s=51128;
init_host_h="*";
init_port_h=35555;
init_group="default";
openSWF('123flashchat.swf','634','476');

</script>
<noscript>
<DIV id="flashchat">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0" WIDTH="634" HEIGHT="476" id="topcmm_123flashchat">
<PARAM NAME=movie VALUE="123flashchat.swf?init_host=*&init_port=51127&init_host_s=*&init_port_s=51128&init_host_h=*&init_port_h=35555&init_group=default">
<PARAM NAME=quality VALUE="high">
<PARAM NAME="menu" value="false">
<EMBED src="123flashchat.swf?init_host=*&init_port=51127&init_host_s=*&init_port_s=51128&init_host_h=*&init_port_h=35555&init_group=default" quality=high menu=false WIDTH="634" HEIGHT="476" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" scale="noscale" name="topcmm_123flashchat" swLiveConnect="true">
</EMBED>
</OBJECT>
</DIV>
</noscript>

If you want to change client host, keep it match the server host value anyway.

One more issue is about flash player. The flash player earlier than version 7 only allow connection with the same domain name for security reason.

In flash player 6, For example:
the domain "www.123flashchat.com" resolves to 69.93.110.158,
the client SWF file located at http://www.123flashchat.com/123flashchat.swf cannot connect to the server if you set host value to: 69.93.110.158, you should set host value to www.123flashchat.com instead.

A SWF file located at http://69.93.110.158/123flashchat.swf cannot connect to the server if you set host value to: www.123flashchat.com, you should set host value to 69.93.110.158.

Identical numeric IP addresses are compatible. However, a domain name is not compatible with an IP address, even if the domain name resolves to the same IP address.

The following table shows examples of compatible domains:

www.123flashchat.comwww.123flashchat.com
abc.123flashchat.comabc.123flashchat.com
69.93.110.15869.93.110.158
The following table shows examples of incompatible domains:
www.123flashchat.comabc.123flashchat.com
123flashchat.comwww.123flashchat.com
www.123flashchat.com123flashchat.com
69.93.110.158www.123flashchat.com (even if this domain resolves to 69.93.110.158)
www.123flashchat.com69.93.110.158 (even if www.123flashchat.com resolves to this IP)

Further contact

If you haven't fully understood this tutorial and if "connection failed" happened to you, please contact our supporter :
http://www.123flashchat.com/support.html
We support in following ways:
1) Online support (online demo, or on MSN, etc)
2) Email support
3) Phone support
Our support team will try to resolve your problem ASAP.
123flashchat
Products Chat Software
3rd Party Chat Plug-in & Chat Modules
Dating Chat Software About Us
Flash Chat Software
Web Messenger Software
Live Help Chat Software
PHP Chat Software
Facebook Messenger
Online Webcam Chat Software
Site Messenger Software
Java Chat Server
Online Chat Software
Free Chat Rooms
phpBB Chat Module
Joomla Chat Module
vBulletin Chat Module
Mambo Chat Module
Drupal Chat Module
Moodle Chat Module
e107 Chat Module
IPB Chat Module
PHP-Nuke Chat Module
DotNetNuke Chat Module
SkaDate Chat Addon
Datingpro Chat Module
Dolphin Chat Module
phpFoX Chat Module
Contact us
Company Blog
Partnership
Affiliate
Forum
Copyright @2001-2010 TopCMM Software Corp. Privacy policy | Terms of Use | SiteMap | Links