Changed from using "ifconfig" to more portable"ip".