Changed the get ipv4 to use ifconfig | grep | awk