myip() { publicip=$(curl -s https://ipecho.net/plain) localip=$(ipconfig getifaddr en0) echo "Public IP: $publicip" echo "Local IP: $localip" }