Adrian1428 31 Posted August 28, 2014 Share Posted August 28, 2014 How can I make the check ip of vds/vps in the source? for security of my files. Link to comment Share on other sites More sharing options...
Premium Shogun 4591 Posted August 28, 2014 Premium Share Posted August 28, 2014 That wont give you any security. Netstat or a TCP Monitor can trace any IP address your machine is connected to. Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted August 28, 2014 Author Share Posted August 28, 2014 That wont give you any security. Netstat or a TCP Monitor can trace any IP address your machine is connected to. I want my game can not be used on other VPS / VDS. Link to comment Share on other sites More sharing options...
M.Sorin 282 Posted August 28, 2014 Share Posted August 28, 2014 /// Server check ip bool Metin2Server_IsInvalid() { g_isInvalidServer = false; if (g_szPublicIP == "192.x.x.x") { g_isInvalidServer = true; return g_isInvalidServer; } else { return g_isInvalidServer; //debug sys_log(0, "Se if the function works."); } } Try it main.cpp under: static bool g_isInvalidServer = false; 2 Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted August 28, 2014 Author Share Posted August 28, 2014 /// Server check ip bool Metin2Server_IsInvalid() { g_isInvalidServer = false; if (g_szPublicIP == "192.x.x.x") { g_isInvalidServer = true; return g_isInvalidServer; } else { return g_isInvalidServer; //debug sys_log(0, "Se if the function works."); } } Try it main.cpp under: static bool g_isInvalidServer = false; doesnt work Link to comment Share on other sites More sharing options...
Premium Zonni 230 Posted August 28, 2014 Premium Share Posted August 28, 2014 You changed this line? if (g_szPublicIP == "192.x.x.x") {Sorry for dumb question but sometimes human makes stupid mistakes @Edit Moreover, you called somewhere this function? Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted August 29, 2014 Author Share Posted August 29, 2014 You changed this line? if (g_szPublicIP == "192.x.x.x") { Sorry for dumb question but sometimes human makes stupid mistakes @Edit Moreover, you called somewhere this function? Of course I changed there ip and the auth is close after trying to login. 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