edited NIC's getIP method