Skip to content
Back to skills

Get Ip

ASecurity

Get current public IP address and geolocation information. Use when users ask about IP addresses, network location, or want to check their public IP. Supports both fetching IP info and displaying it clearly.

  • 21 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 7, 2026
toolsgobashapi

Works with

  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro scans all 3 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill get-ip --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Get Ip?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Get Ip
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-get-ip/badge)](https://www.skillsdirectory.com/skills/modbender-get-ip)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ip-lookup
description: Get current public IP address and geolocation information. Use when users ask about IP addresses, network location, or want to check their public IP. Supports both fetching IP info and displaying it clearly.
---

# IP Lookup Skill

## Overview

This skill provides a simple way to check your public IP address and its geolocation information.

## Usage

When users ask:
- "What is my IP?"
- "What is my current IP address?"
- "What's my public IP?"
- "Where am I?"
- "Where am I located?"
- "Check location"
- "Check my IP location"
- "Get location"
- "Locate me"
- "What's the IP?"
- "What's your IP?"

Execute the workflow below.

## Workflow

### Basic IP Check

Run this command to get your public IP and location:

```bash
curl -s myip.ipip.net
```

Example output:
```
Current IP:8.8.8.8  From: SF CA USA Google
Current IP:1.1.1.1  From: SF CA USA Cloudflare
```

### Alternative Methods

If the above fails, try these alternatives:

**Method 1: icanhazip.com (fallback)**
```bash
curl -s icanhazip.com
```

**Method 2: ipify API**
```bash
curl -s https://api.ipify.org
```

**Method 3: ifconfig.me**
```bash
curl -s ifconfig.me
```

### Full Geolocation Lookup

For more detailed geolocation info:

```bash
curl -s https://ipinfo.io/$(curl -s https://api.ipify.org)/json
```

## Display Format

Present the information clearly:

**IP Address:** [address]
**Location:** [city], [region], [country]
**ISP:** [ISP name]
**Org:** [organization]

## Error Handling

If the primary service (`myip.ipip.net`) fails:
1. Try alternative services one by one
2. Report which service succeeded
3. If all fail, inform the user about the network issue

Files in this skill

  • SKILL.md1.7 KB
  • get_ip.sh1.2 KB
  • scripts/package_skill.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.