Page 1 of 1

Port connection error on network

Posted: 19 Sep 2013, 07:46
by amitthedeveloper
Dear Lapo,

Thanks for addressing our issues!

We developed a game and now trying to distribute over network. We have the flash file compiled in exe using Zinc.
We have placed the crossDomain.xml in the folder at server(may be at wrong place).

Now when we play the game on the same PC where the server is installed it connects using 9933 port. But when we use other PC to connect it does not connect using port 9933 but using BlueBox.

We have added exception for port 9933(TCP and UDP) on both client PC and server.

We also tried using a small program even on webserver but no help! I am enclosing the code for the same we are using. Please suggest.

Game source:
http://quicksolution.in/oupupload/game_source.rar

Re: Port connection error on network

Posted: 19 Sep 2013, 08:38
by Lapo
Hi there,
I am not sure how Zinc deals with the flash player security. In theory what they are doing is creating a native code wrapper around the Flash Player.
With a regular standalone Flash Player you need to configure it to allow network access to specific SWF files or an entire folder or tree of folders.

Unfortunately I don't know how this might work when the SWF is compiled to a Windows EXE.
I would recommend to ask the Zinc support team or search in their documentation about how to grant access to local files (for loading the config.xml) and network (in order to access the server)

Thanks

Re: Port connection error on network

Posted: 19 Sep 2013, 08:44
by amitthedeveloper
Leave the Zinc and the EXE!


I just made a swf deployed on webserver. Even this didnt connected using the port 9933 but connects using the bluebox!

But the swf works well when we run on the server itself.

Re: Port connection error on network

Posted: 19 Sep 2013, 09:31
by Lapo
Can I have a link to the online SWF?
If you don't want to make the URL public send me a private message.

Cheers

Re: Port connection error on network

Posted: 19 Sep 2013, 09:39
by amitthedeveloper
Everything is on my local network.
:)

though I have uploaded the source of the sample file.
http://quicksolution.in/oupupload/game_source.rar

Do there are some changes to be done in SFS admin to accept connection!

I guess I need to configure my Local web server(WAMP) to allow/accept other ports! Any idea?

Cheers

Re: Port connection error on network

Posted: 19 Sep 2013, 11:58
by amitthedeveloper
Here is the Solution

I have not bound the smart fox sever with thisport.

http://forums.smartfoxserver.com/viewtopic.php?t=13171

Though when I applied this I start getting error
"Invalid TCP port"

Re: Port connection error on network

Posted: 20 Sep 2013, 08:36
by Lapo
Hi, I am not sure if you found a solution or not.

Re: Port connection error on network

Posted: 19 Oct 2013, 03:06
by toni
Hi, i have something similar going on, but i dont feel like opening new topic.

I've made server up and running, with few extensions, tested it on 127.0.0.1 everything worked fine. After that i run it on my public IP, and here is weird part. I get WARN botLogger was not able to bind socket on public IP. BUT i can connect to that IP from my pc and when i trace connectionIP i get public ip, should i be concerned about that warning or?

Re: Port connection error on network

Posted: 19 Oct 2013, 08:06
by Lapo
Typically a live server has two IP addresses, a private one which is the physical IP in the local network and public one which is exposed by a router using the NAT service.

In the SmartFox configuration you are required to use the physical address of the machine, which is the private address.

You can check the private IP of the server by running ipconfig/all (Windows) of ifconfig (Linux/Unix) in a console window.

cheers