Can I use a domain instead of an IP address as host?

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

Moderators: Lapo, Bax

intomo
Posts: 51
Joined: 22 Nov 2010, 21:21
Location: Los Angeles

Can I use a domain instead of an IP address as host?

Postby intomo » 08 Dec 2021, 23:41

Can I use a domain instead of an IP address as host in my config?
If so, what has to be changed on the smartfox admin?

Thanks
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can I use a domain instead of an IP address as host?

Postby Lapo » 09 Dec 2021, 07:58

Hi,
sure, both are valid.

If so, what has to be changed on the smartfox admin?

Nothing needs to be changed, because the domain name will be resolved to the actual server's public IP address. If you leave the default settings in SFS2X, it will bind the correct address for you.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
intomo
Posts: 51
Joined: 22 Nov 2010, 21:21
Location: Los Angeles

Re: Can I use a domain instead of an IP address as host?

Postby intomo » 09 Dec 2021, 08:19

Thanks. What are default settings for in admin? I changed these to our IP address, so what do I set them back to?
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can I use a domain instead of an IP address as host?

Postby Lapo » 09 Dec 2021, 14:57

0.0.0.0 is the default value, which binds the available IP address(es).

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 56 guests