Port connection error on network

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

amitthedeveloper
Posts: 9
Joined: 24 Apr 2013, 14:39

Port connection error on network

Postby amitthedeveloper » 19 Sep 2013, 07:46

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
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Port connection error on network

Postby Lapo » 19 Sep 2013, 08:38

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
Lapo
--
gotoAndPlay()
...addicted to flash games
amitthedeveloper
Posts: 9
Joined: 24 Apr 2013, 14:39

Re: Port connection error on network

Postby amitthedeveloper » 19 Sep 2013, 08:44

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.
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Port connection error on network

Postby Lapo » 19 Sep 2013, 09:31

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
Lapo

--

gotoAndPlay()

...addicted to flash games
amitthedeveloper
Posts: 9
Joined: 24 Apr 2013, 14:39

Re: Port connection error on network

Postby amitthedeveloper » 19 Sep 2013, 09:39

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
amitthedeveloper
Posts: 9
Joined: 24 Apr 2013, 14:39

Re: Port connection error on network

Postby amitthedeveloper » 19 Sep 2013, 11:58

Here is the Solution

I have not bound the smart fox sever with thisport.

viewtopic.php?t=13171

Though when I applied this I start getting error
"Invalid TCP port"
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Port connection error on network

Postby Lapo » 20 Sep 2013, 08:36

Hi, I am not sure if you found a solution or not.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
toni
Posts: 1
Joined: 26 Jul 2013, 17:23

Re: Port connection error on network

Postby toni » 19 Oct 2013, 03:06

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?
Hi, how are you today?
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Port connection error on network

Postby Lapo » 19 Oct 2013, 08:06

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
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 12 guests