360 Secure SkillHub
360 安全技能中心

Show My IP

核心功能为查询运行代理的服务器公网IP,通过执行bash脚本调用ifconfig.me接口,返回必有的IPv4及可选的IPv6地址。典型场景包括用户询问公网IP、验证出站IP白名单、检查VPN/代理状态、确认服务器网络身份。输入为执行指定bash脚本,输出为结构化IP信息文本,需依赖curl和互联网访问。

ericsantos
ericsantos
热度 63.02
最近更新 2026-05-11 17:26:34
分类:自动化依赖:代码执行应用场景:调试排错

安装技能

复制下面的话术发给你的 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