Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2003, 01:09 PM
Junior Member
 
Join Date: Nov 2003
Posts: 5
Default chat server on redhat

hello,

any idea why a client browser is reporting a "Error to load language configuration file" and no chat client is loaded?

I've got fcserver running on a redhat9 box and I am using your index.html test file from the flash folder.

Thanx a bunch.

Kroko.
  #2 (permalink)  
Old 11-19-2003, 03:40 PM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:chat server on redhat

make sure the two dir: lang , skin in the dir of your html files

eg. your html file is :
/usr/local/www/htdocs/chat/index.html
then , copy the "lang", "skin" dir to:
/usr/local/www/htdocs/chat/lang
/usr/local/www/htdocs/chat/skin

is that clear ?
any question , just reply here.
good luck!

  #3 (permalink)  
Old 11-20-2003, 03:01 PM
Junior Member
 
Join Date: Nov 2003
Posts: 5
Default Re:chat server on redhat



Thanks Daniel for your very prompt response. I had wrong permissions on lang and skin folders. chmod fixed the problem.

Now I am facing the following problem:

My server is running on a machine behind a router. This server's IP is 192.168.1.100 let's say. I setup my router (whose public IP is x.y.z.w) to forward port 51127 to 192.168.1.100

I started my flash chat server with host=192.168.1.100 in fcserver.xml.
I have the client residing at a website hosted by a provider with client.xml containing host=x.y.z.w and port=51127

Would this setup work? or am i missing something?

It is not working for me yet but i am suspecting that my own provider is blocking port 51127.

Thanks a lot.

  #4 (permalink)  
Old 11-20-2003, 03:52 PM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:chat server on redhat

is that your router do the NAT or similar work ?

if that, you should:

1. edit the fcserver.xml , modify :
<server-address>*</server-address>
to : <server-address>192.168.1.100</server-address>
remember, the server address must using the lan ip , not the public ip x.y.z.w

2. add a rule in your router, you should redirect the tcp connection:
x.y.z.w port: 51127 (or other port) --> 192.168.1.100 port: 51127

if you don't use the 51127 port in your public ip, eg. n , you should edit the client.xml , <port value="n" />

3. edit the client.xml
if you use the domain name www.yourhost.com ( point to x.y.z.w) to access the html file, eg. http://www.yourhost.com/chat/aaa.html just change to
<host value="www.yourhost.com " />
if you use the ip address to access the html file,eg. http://x.y.z.w/chat/aaa.html
<host value="x.y.z.w" />

I just installed a server and integrated his mysql database for one customer, if you want , we can provide the service for you.
  #5 (permalink)  
Old 11-20-2003, 04:47 PM
Junior Member
 
Join Date: Nov 2003
Posts: 5
Default Re:chat server on redhat



Thanks Daniel.

I had the setup as you describe it and I am almost sure that my cable provider is blocking port 51127 (I'll double check that tonite as I don't have outbound access to 51127 from where I am now). My router is a linksys and it does not provide PAT, i'll switch to a software based firewall(IPCOP) tonite and use port 80 (whic is open) and translate it to 192.168.1.1:51127

Could I use port 80 in client.xml? or does it have to be in the 1024-65535 range?

Thanks.
  #6 (permalink)  
Old 11-21-2003, 01:46 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:chat server on redhat

Yes, you can use 80 in the client.xml, because you redirect the:
x.y.z.w port: 80 --> 192.168.1.100 port: 51127
the real port of the server listen is 51127, it's between 1024-65535


But, I'm wondering, the 80 port is the default http port, if you redirect the 80 port , how about the www access ? is there another port is not blocked you can use ?
  #7 (permalink)  
Old 11-22-2003, 05:53 PM
Junior Member
 
Join Date: Nov 2003
Posts: 5
Default Re:chat server on redhat



First of, thanks a lot Daniel for your answers. My plan is to run the chat server at home and have the client stuff reside at my public site hosted by a provider. I have no need for port 80 at home. Actually I am finding out that my home ISP is blocking way too many ports and funny enough 80 is not blocked.

The other thing is that my public hosting service does not allow me to run the chat server on their site.

Thanks again.
  #8 (permalink)  
Old 11-23-2003, 03:11 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:chat server on redhat

I see, from our faq page,
http://www.123flashchat.com/faq.html#d1
you can find more info about it:

Quote:
What if 123 flash chat server and 123 flash chat client are placed on different server machines?

Assume you started 123 flash chat server on a domain named www.server.com, while you placed swf file in a web site named www.yourhost.com, and you entered a host like www.server.com or its IP in client.xml, in such case your chat room surely can't connect with www.server.com due to a security restriction of flash player.
Try these methods to solve this problem:
1. Place your swf file under the hostname of www.server.com, too. It definitely works.
2. If the first alternative is out of your reach, try the next one: in your dns server, add an A record, eg: chat.yourhost.com, to direct an IP address the same with www.server.com, then change the host to chat.yourhost.com to update your client.xml, now your chat room can work normally.
My point is: you'd better set a sub domain to your home internet ip, eg, if your main web site is www.yourweb.com , and it's hosted by your host provider, then you can add a sub domain like chat.yourweb.com , point to your lan ip, then edit the client.xml, change host to: chat.yourweb.com , this way can resolve the security restriction of flash player.
  #9 (permalink)  
Old 11-24-2003, 02:18 PM
Junior Member
 
Join Date: Nov 2003
Posts: 5
Default Re:chat server on redhat



Hi Daniel,

I am still facing a problem in getting the chat server behind my home firewall to work. Here is my setup:

At home:
My public IP is x.y.z.w (IP assigned to my router/firewall by ISP DHCP server)
IP Forwarding on my router: port 80 ==> 192.168.1.100
Home machine hosting chat server: 192.168.1.100
Chat server fcserver.xml: host=192.168.1.100, port=51127
Client stuff is residing on 192.168.1.100 (running apache)
client.xml: host=192.168.1.100, port=51127

When I launch a browser at home and point to http://192.168.1.100/index.html everything works fine and the chat client comes up and I can chat.

When I launch a browser at home and point to http://x.y.z.w/index.html the client loads but times out while trying to "connecting the server".
I get this same result from outside trying to go to http://x.y.z.w/index.html

Any clues?

  #10 (permalink)  
Old 11-25-2003, 02:14 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:chat server on redhat

You should change the client.xml
host=x.y.z.w
because the others just read the client.xml to connect your server.

And remeber, the ip forwarding on your router:
x.y.z.w port 80 ==> 192.168.1.100 port: 51127


Closed Thread

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:19 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.