Jimmermania 27 Posted January 4, 2023 Share Posted January 4, 2023 Hello community. Happy new year to everyone. I have a problem only when i set up a server at localhost. I can log in without any problems, but when i select the character, he gets kicked and goes back at login window. Any ideas? Thanks in advance. Link to comment Share on other sites More sharing options...
Active Member Draveniou1 715 Posted January 4, 2023 Active Member Share Posted January 4, 2023 (edited) 1) OPEN db source in ClientMananger.cpp game source in Config.cpp OPEN: ClientMananger.cpp (DB) Search: if (!CConfig::instance().GetValue("BIND_IP", szBindIP, 128)) strlcpy(szBindIP, "0", sizeof(szBindIP)); change: if (!CConfig::instance().GetValue("BIND_IP", szBindIP, 128)) strlcpy(szBindIP, "127.0.0.1", sizeof(szBindIP)); OPEN: Config.cpp (GAME) Search: if (!strncmp(netip, "192.1", 7)) change: if (!strncmp(netip, "999.999", 7)) search: if (g_szPublicIP[0] != '0') change: if (g_szPublicIP[0] != '0') return true; else { if (g_szInternalIP[0] == '0') return false; else strlcpy(g_szPublicIP, g_szInternalIP, sizeof(g_szPublicIP)); return true; } Edited January 4, 2023 by Draveniou1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now