返回技能列表
show-my-ip
由 ericsantos 提供
Coding Agents & IDEs—暂无评分
你的评分
简介
Show the current public IP address of the server.
描述
该技能的功能
Retrieves the public IP address of the machine running the agent by querying ifconfig.me. Returns both IPv4 and IPv6 addresses when available.
Saves opening a browser or remembering the ifconfig.me URL when working in a terminal-only or automated environment.
何时使用
- Checking if a VPN is active and routing traffic correctly
- Verifying outbound IP before adding it to a firewall allowlist
- Confirming which server is handling requests after a deployment
- Debugging API rejections caused by IP restrictions
- Checking server identity in a multi-region setup
示例工作流
输入
User asks: What's my public IP address?
智能体
- 1
Run scripts/get-ip.sh
- 2
Capture stdout from the script
- 3
Parse IPv4 line from output
- 4
Parse IPv6 line if present
- 5
Return formatted IP information to user
输出
IPv4: 203.0.113.42, IPv6: 2001:db8::1
安装
clawhub install ericsantos/show-my-ip运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。