Get the current public/outbound IP address of this machine using a reliable shell workflow with multiple fallback endpoints. Use when users ask for outbound IP, public IP, WAN IP, egress IP, or need IP checks before firewall/network allowlisting.
Resources
1Install
npx skillscat add gitstua/stu-skills/outbound-ip Install via the SkillsCat registry.
SKILL.md
Outbound IP
Use scripts/get_outbound_ip.sh for deterministic public IP lookup with endpoint fallback.
Workflow
- Run the helper script:
scripts/get_outbound_ip.sh
- Return the resulting IPv4/IPv6 value exactly as printed.
Notes
- The script tries several HTTPS endpoints and returns the first valid IP.
- Use
--family 4to force IPv4 and--family 6to force IPv6. - Use
--jsonwhen downstream automation needs structured output. - If all providers fail, report the error and likely network/DNS restrictions.