Cant connect from remote computer

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
DeaglinG
Posts: 2
Joined: 29 Nov 2010, 10:34

Cant connect from remote computer

Post 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?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post 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.
Smartfox's forum is my daily newspaper.
jz87
Posts: 19
Joined: 16 Dec 2010, 23:10
Location: us

Post 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.
Post Reply