Connecting with DNS name

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

ericheimburg
Posts: 26
Joined: 18 Mar 2010, 07:25

Connecting with DNS name

Postby ericheimburg » 29 Apr 2010, 06:44

Hi, the doc bundle that comes with the SFS Unity download says that Connect() can take an IP address or a domain name:

hostAdr (String)
the SmartFoxServer host or ip address.

However, if I try to give it a host name, it just silently does nothing, forever. I eventually found the "debug" flag, which causes it to say:

"API only accepts IP addresses for connections"

So how do I get it to accept a domain name?

Thanks!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 29 Apr 2010, 06:52

Hi,

Are you certain that you run the latest API version? Its only been added in 1.2.4, and some of the existing examples have an older dll included.

Best
Thomas

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 16 guests