Page 1 of 1

Cant connect from remote computer

Posted: 29 Nov 2010, 10:58
by DeaglinG
Hello,

I've just installed the SmartFoxServer on a PC in my workplace LAN.

The computer is a part of our domain.

The server is running good from within itself, but it seems that i cant connect to the examples from another computer.

I CAN connect to the "http://xxx:8080" page and browse the examples page from the other computer but when i try to connect to an example (i.e simple chat), it just tries for a few seconds and then sais CANT CONNECT.

I have read the docs saying it could be a probem with the flash privacy settings but i have added the crossdomain.xml (altough its the same domain), the contents of the file are:

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
	<allow-access-from domain="*" />
</cross-domain-policy> 
Stored in: server/webserver/webapps/root/ folder

Any ideas?

Posted: 29 Nov 2010, 20:28
by BigFIsh
It's probably because your work network blocked the socket port that was defined in your config.xml file which is required for other computer to connect to your server.

Posted: 21 Dec 2010, 23:28
by jz87
I just figured it out. It turns out I needed to add the following line to my server.xml file on the server side:

<socket address="127.0.0.1" port="843" type="TCP"/>

That was incredibly non-obvious. I stumbled on this by chance when some documentation passingly referred to port 843 in conjunction to crossdomain.xml

This setting really should be in the default server.xml along with a comment about what it's for.