This skill discovers both the public (external) IP and the local (internal) IP of the current machine.
Use a simple HTTPS endpoint that returns your public IP as plain text:
curl.exe -s https://ifconfig.me
If the service is blocked or slow, try:
curl.exe -s https://api.ipify.org
On Windows (PowerShell or cmd):
ipconfig
Then filter the output for lines containing IPv4 地址 or IPv4 Address.
On Linux:
hostname -I
This typically returns one or more local IPs separated by spaces.
共 1 个版本