SmartFox.UdpAvailable

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
AiryKai
Posts: 14
Joined: 01 Apr 2015, 08:02

SmartFox.UdpAvailable

Post by AiryKai »

Hey, everybody!

I'm pretty familiar with smartfox and have deployed various game servers. But now I needed to create a new instance and ran into a problem that I haven't gotten before.

For some reason UdpAvailable is always false for me. I am installing smartfox 2x 2.20.0 on a Ubuntu server. I checked the ports and even allowed all connections on all ports. But it's still false for me.

Maybe there are some reasons there that I don't know about?
AiryKai
Posts: 14
Joined: 01 Apr 2015, 08:02

Re: SmartFox.UdpAvailable

Post by AiryKai »

I found a solution to my problem.

In fact, my smartfox could not bind sockets on the specified ports. In the log I saw a message: "Was not able to bind socket".

The problem was solved when I changed the IP address in the server config to 0.0.0.0

I still don't know why this is the case on this server specifically. But it's working right now.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFox.UdpAvailable

Post by Lapo »

Hi,
SmartFoxServer 2.20 (and it's predecessors) are already set to use 0.0.0.0 by default so I am not sure why you had to change it... maybe you already modified it previously?

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
AiryKai
Posts: 14
Joined: 01 Apr 2015, 08:02

Re: SmartFox.UdpAvailable

Post by AiryKai »

I've always changed it when I set up the smartfox server. Just doing it the way I've always done it.
I was surprised it didn't work.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFox.UdpAvailable

Post by Lapo »

Leaving 0.0.0.0 is the best choice to avoid headaches: it binds the available private addresses without manual intervention.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply