Page 1 of 1

SmartFox.UdpAvailable

Posted: 01 May 2024, 14:46
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?

Re: SmartFox.UdpAvailable

Posted: 01 May 2024, 19:32
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.

Re: SmartFox.UdpAvailable

Posted: 03 May 2024, 07:39
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

Re: SmartFox.UdpAvailable

Posted: 03 May 2024, 10:58
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.

Re: SmartFox.UdpAvailable

Posted: 03 May 2024, 15:41
by Lapo
Leaving 0.0.0.0 is the best choice to avoid headaches: it binds the available private addresses without manual intervention.

Cheers