Last active
February 14, 2025 02:49
-
-
Save geminixiang/946f4e3882b6cf3364cdc227ad50bc00 to your computer and use it in GitHub Desktop.
ip.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "內網 IP: $(ipconfig getifaddr en0)" | |
echo "外網 IP: $(curl -s ifconfig.me)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fish shell