Use of global var for IP