Small change in getIP() Function