Hello, I am using the Nakama Unity SDK to connect to my server. Instead of specifying an IP address and port, I would like to connect directly using a domain name. However, I couldn’t find any relevant information in the documentation. Is this possible, and if so, how should it be configured?
SDK Version : v3.16.0
@MahdiRashidi-Info if you want to use a DNS record you just set the host param as that instead of the IP, the SDK will try to resolve it.
Thanks, This is my code but when i run it, i got this following error :
UriFormatException: Invalid URI: The hostname could not be parsed.
public void InitializeNakama(string domain, int port)
{
_client = new Client("https", domain, port, "defaultkey");
_client.Timeout = 5;
_socket = _client.NewSocket();
AuthenticateUser();
}
is it ok ?
It looks like the host name you’re using is invalid.