360 Secure SkillHub
360 安全技能中心

Show My IP

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

分类:自动化
ericsantos
ericsantos
热度 45.55
最近更新 2026-05-11 17:26:34

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ericsantos/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