Get IP of server?
#1

Hi guys

Is possible to make ongamemodeinit check on which IP is run server...I use my mode on 3 different IP (My main server,my public test server(for staff,test update,5 slots...) and localhost,haha) . So I want to make check in ongamemodeinit for example

Код:
if(IPAdress == 130.321.3224.:4040)
{
g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
}
else if(IPAdress == 242.133.3131:4040)
{
g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
}
else //localhost
{
g_SQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
}
Is something like this possible?Now I need to change my MYSQL data every time...I hope you can understand me,thanks.
Reply


Messages In This Thread
Get IP of server? - by GospodinX - 05.05.2018, 18:59
Re: Get IP of server? - by GospodinX - 05.05.2018, 19:06
Re: Get IP of server? - by GospodinX - 05.05.2018, 19:11
Re: Get IP of server? - by Dayrion - 05.05.2018, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)