You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, the second parameter of NBN_GameClient_Start can not be domain name: int NBN_GameClient_Start(const char *protocol_name, const char *ip_address, uint16_t port, bool encryption, uint8_t *connection_data)
So if I try to use it like: NBN_GameClient_Start(EXAMPLE_PROTOCOL_NAME, "localhost", SERVER_PORT, false, NULL)
It fails: ERROR: Failed to resolve IP address from localhost
It means only dotted IP address is supported. Could you make it support domain name? Thank you!
The text was updated successfully, but these errors were encountered:
I'll take a look in the future. Also, it should not be too hard to add support for it, so you can probably implement it yourself and create a PR. I would really appreciate it.
stemvork
added a commit
to stemvork/nbnet
that referenced
this issue
Aug 23, 2024
In NBN_GameClient_StartEx(...) we check if the host == "localhost" and use "127.0.0.1" instead.
Also, updated the echo example to use host "localhost" to test this change. Everything seems to be working.
stemvork
added a commit
to stemvork/nbnet
that referenced
this issue
Aug 24, 2024
In NBN_GameClient_StartEx(...) we check if the host == "localhost" and use "127.0.0.1" instead.
Also, updated the echo example to use host "localhost" to test this change. Everything seems to be working.
Hello, the second parameter of NBN_GameClient_Start can not be domain name:
int NBN_GameClient_Start(const char *protocol_name, const char *ip_address, uint16_t port, bool encryption, uint8_t *connection_data)
So if I try to use it like:
NBN_GameClient_Start(EXAMPLE_PROTOCOL_NAME, "localhost", SERVER_PORT, false, NULL)
It fails: ERROR: Failed to resolve IP address from localhost
It means only dotted IP address is supported. Could you make it support domain name? Thank you!
The text was updated successfully, but these errors were encountered: