360 Secure SkillHub
360 安全技能中心

Show My IP

该 Skill 通过 Bash 脚本调用 curl 查询 ifconfig.me,返回当前机器的公网 IPv4 地址,并在可用时返回 IPv6 地址;适用于确认出口 IP、VPN 或代理状态以及服务器网络身份。运行需要 curl 和互联网访问。

ericsantos
ericsantos
热度 63.06
最近更新 2026-05-11 17:26:34
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add show-my-ip
Metadata
name
show-my-ip
description
Show the current public IP address of the server. Use when asked about IP, public IP, or network identity.

Show My IP

Quickly check the public IP address of the machine running your agent. Useful for debugging network issues, verifying VPN connections, confirming server identity, or setting up firewall rules.

Usage

bash scripts/get-ip.sh

Output

Returns the public IPv4 address (and IPv6 if available) by querying ifconfig.me.

Example output:

=== Public IP ===
IPv4: 203.0.113.42
IPv6: 2001:db8::1

When to Use

  • User asks "what's my IP?" or "show my public IP"
  • Verifying outbound IP for allowlisting
  • Checking if a VPN or proxy is active
  • Confirming server network identity

Requirements

  • curl (pre-installed on most systems)
  • Internet access