var ip = '18.222.226.47'; var centreId = 0; if (ip == '101.78.148.206' || ip == '118.142.25.6') { /* hkbn | HGC */ centreId = 1; } else if (ip == '42.200.89.170') { /* HKT */ centreId = 2; } else if (ip == "94.190.212.59") { /* HKT */ centreId = 3; } else if (ip == '103.247.159.122') { /* WTT */ centreId = 4; } else if (ip == "210.0.220.194") { /* HGC */ centreId = 7; } else if (ip == '116.48.148.55') { /* HKT */ centreId = 8; } else if (ip == '65.181.93.178') { /* HKT */ centreId = 9; }