Ipmproved methods to obtain IP address and Interface being used