Page 1 of 1

Connection Issue

Posted: 03 Feb 2014, 08:46
by oalasergiu
Hello everyone,

I've just started using this amazing product, and unfortunately ran into some problems.

Here's what's going wrong:
No one can connect to my smartfoxserver2x, neither LAN nor WAN (I tried to connect from 2 machines in my LAN).

I'm sure I've done post-installation steps properly; I have 9933 port open and forwarded to my machine and I have a Static IP.

Also, in the SFS2x's control panel -> server configuration I have added Socket Addresses of my machine's LAN Ip.
Through my public IP, anyone can see the SFS2x' default page, access the administration tools etc. but cannot connect to the server. It always says "Can't connect to server!".

Any clues what it can be?

Thanks in advance!

Re: Connection Issue

Posted: 03 Feb 2014, 08:51
by Bax
Did you update the client so that it connects to the right IP address? I'm asking because all the examples by default try to connect locally (127.0.0.1).

Re: Connection Issue

Posted: 03 Feb 2014, 09:10
by oalasergiu
Hey Bax,

Thanks for your reply.

Yes, I'm updating the IP in examples to my public IP address.

Sorry I forgot to mention that.

Re: Connection Issue

Posted: 03 Feb 2014, 14:40
by Bax
What client technology are you using?

Re: Connection Issue

Posted: 03 Feb 2014, 15:03
by oalasergiu
I am using Unity Web Player.

Re: Connection Issue

Posted: 03 Feb 2014, 19:45
by oalasergiu
I'm displayed with this error:
"Http error creating http connection: System Security."

Think it can help identify the problem.

Re: Connection Issue

Posted: 03 Feb 2014, 19:52
by oalasergiu
So, it looks like it's a crossdomain.xml issue.

In my code, I have these lines:

Code: Select all

		if (Application.isWebPlayer || Application.isEditor) {
			if (!Security.PrefetchSocketPolicy(serverName, serverPort, 500)) {
				Debug.LogError("Security Exception. Policy file loading failed!");
			}
		}
Where should be placed the crossdomain.xml file?

I have it in "/SmartFoxServer_2X/SFS2X/config/" and "/SmartFoxServer_2X/SFS2X/www/root/"

Re: Connection Issue

Posted: 03 Feb 2014, 21:31
by oalasergiu
I figured it out. - Changed the default port 9933 to a different one (1933). Now anyone can connect to my server!

Thanks!

Re: Connection Issue

Posted: 04 Feb 2014, 09:02
by Bax
The I suppose your network configuration blocked port 9933.

Re: Connection Issue

Posted: 04 Feb 2014, 12:24
by oalasergiu
Yeah, I guess.
But now another problem, I cannot login into the Administration Panel. :(

Re: Connection Issue

Posted: 04 Feb 2014, 13:56
by Bax
It is possible that in the server.xml configuration the administrator is allowed to connect using the 9933 port only.
Please check the <adminTcpPort> setting: you should enter -1 to allow the admin connection using any port.