#!/bin/bash echo "內網 IP: $(ipconfig getifaddr en0)" echo "外網 IP: $(curl -s ifconfig.me)"