Cross Proxy function ensure client can connect to the chat server when user accessing Internet via a proxy server.
Before you reading the configuration content, please do following preparation :
1. Make sure your 123flashchat version is at least 6.3.
2. Make sure you have at least one available Public IP Address on your Computer which installed the 123 flash chat server. (IP Address is an identifier for a computer or device on a TCP/IP network.).
3. Prepare an available network port with this Public IP Address ( An available network port means this port is not used by any network program by this Public IP Address. Port range: 1~65535)
4. Prepare an available Domain Name binding with your Public IP Address.
(Domain Name and IP Address WHOIS pages can be directly accessed by pointing your browser to www.123flashchat.com or 222.66.66.66.) .
You should must ensure the Domain Name that can access the web page embedded the 123flashchat.swf and the Domain Name you prepared share the same domain suffix.
Example:
1. Web page embedded the 123flashchat.swf:
Domain Name: www.123flashchat.com
IP Address: 222.66.66.66
Port: 80
You prepared:
Domain Name: chat.123flashchat.com
IP Address: 222.77.77.77
Port: 80
The domain name that can access the web page embedded the 123flashchat.swf is : www.123flashchat.com
The domain name you have prepared is: chat.123flashchat.com
They share the same domain suffix"123flashchat.com", so this is ok.
2. Web page embedded the 123flashchat.swf:
Domain Name: www.123flashchat.com
IP Address: 222.66.66.66
Port: 80
You prepared:
Domain Name: www.123flashchat.com
IP Address: 222.66.66.66
Port: 35555
The domain name that can access the web page embedded the 123flashchat.swf is : www.123flashchat.com:80
The domain name you have prepared is: www.123flashchat.com:35555
They share the same domain suffix"123flashchat.com", so this is ok.
3. Web page embedded the 123flashchat.swf:
Domain Name: www.123flashchat.com
IP Address: 222.66.66.66
Port: 80
You prepared:
Domain Name: www.123livehelp.com
IP Address: 222.77.77.77
Port: 80
The domain name that can access the web page embedded the 123flashchat.swf is : www.123flashchat.com
The domain name you have prepared is: www.123livehelp.com
One of the domain suffix is"123flashchat.com" , and the other is"123livehelp.com" .
They are not share the same domain suffix, so this is not allowed.
10.1 Configuration:
In order to make the cross proxy function working, you should edit following file.
1.fcserver.xml located on <123flashchat installed directory>/server/etc/fcserver.xml .
2.client.xml located on <123flashchat installed directory>/client/client.xml .
3.proxy.js located on <123flashchat installed directory>/client/proxy.js .
Step1:
Edit fcserver.xml
Find this sentence "<http-server ip="*" port="35555" enable="On">" in fcserver.xml.
This configuration is used to make the chat server starting a http server to ensure the client can communicate with the chat server via http protocol when user accessing Internet through a proxy.
Set the ip value with your prepared Public IP Address, and set the port value with your prepared Port. And restart your chat server.
Step2:
Edit client.xml
Find this sentence"<httpServer host="*" port="35555" enable="false"/>" in client.xml .
This configuration is used to make the client can connect to chat http server.
Set the host value with your prepared Domain Name the port value with your prepared Port, and set enable value to true.
Step3:
Edit proxy.js
Find the variable"my_domain".
Set this variable to your prepared domain suffix .
Example:
Prepared Domain: chat.123flashchat.com .
Then domain suffix=123flashchat.com .
So set variable my_domain="123flashchat.com".
Sample:
Your preparation:
Domain Name: chat.123flashchat.com .
Domain suffix: 123flashchat.com .
IP Address: 222.77.77.77 .
Port: 80.
Step1: Open fcserver.xml
Step2: Edit"<http-server ip="*" port="35555" enable="On">" with
".
Step3: Restart the chat server.
Step4: Open client.xml .
Step5: Edit"<httpServer host="*" port="35555" enable="false"/>" with
.
Step6: Open proxy.js
Step7: Set the variable my_domain="123flashchat.com".
Congratulation, you have completed all configuration!