Jump to content
  • 0

Problem with localhost server-char kick after select


Jimmermania

Question

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0
  • Bronze
Posted (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 by Draveniou1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.