Skip to content
YAS.SH
Network & DNS🌐 YAS server-sideAPI availablebeginner

What Is My IP

Shows your public IP address plus ASN, ISP, city, country and VPN hints.

Processed by YAS · not stored
Ready to runInstant execution
All tools →
Your public IP — auto-detected, no input needed • 100% free / open-source

What does this tool do?

Shows your public IP address plus ASN, ISP, city, country and VPN hints.

Why would I use it?

  • You want to know your public IP and who your ISP is.
  • You are troubleshooting connectivity or geolocation.
  • You want to check whether your VPN is active.

Real-life example

Input
Just open the page
Output
IP 203.0.113.7 · ASN AS12345 · ISP ExampleNet · Bratislava, SK

YAS detects your address from the request.

Input → Process → Output → Next

Input
Open the tool.
Process
YAS reads your request's source IP and enriches it.
Output
Your public IP and network details.
Next action
Use the IP to test firewall rules or geolocation-dependent services.

Common mistakes

  • Expecting the private (LAN) address — this is your public address.
  • Sharing the output publicly (it identifies your network).
  • Assuming IP geolocation is precise — it is approximate.

What the result means

The IP is the address remote servers see when you connect.

Privacy & security

Your input is sent to YAS infrastructure because the tool requires server-side processing or public network queries. Input is not stored.

API

Endpoint
POST https://yas.sh/api/v1/tools/what-is-my-ip
Request Header
Content-Type: application/json
cURL
curl -X POST "https://yas.sh/api/v1/tools/what-is-my-ip" \
  -H "Content-Type: application/json" \
  -d '{}'
JavaScript
const res = await fetch("https://yas.sh/api/v1/tools/what-is-my-ip", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
Python
import requests

r = requests.post("https://yas.sh/api/v1/tools/what-is-my-ip", json={})
data = r.json()
FieldTypeRequiredDescription
ipstringNoOptional specific IP to look up (defaults to your own via X-Real-IP / X-Forwarded-For). Also supported as ?ip= on GET.
Success response
{ "result": { "ip": "1.2.3.4", "ipv4": "1.2.3.4", "asn": "AS13335", "asName": "Cloudflare", "org": "Cloudflare", "city": "Lisbon", "region": "Lisbon", "country": "PT", "loc": "38.7167,-9.1333", "timezone": "Europe/Lisbon", "isVpn": null, "isTor": null } }

Your public IP with ASN, ISP, geo and VPN/Tor hints (ipinfo-style). No key needed.

Error responses
  • 400 VALIDATION_ERROR — invalid input or unsupported option.
  • 413 PAYLOAD_TOO_LARGE — input exceeds the 64 KB limit.
  • 429 RATE_LIMIT_EXCEEDED — rate limit exceeded (60 req/min).
Limits
  • Maximum input: 64 KB per request.
  • Rate limit: 60 requests/min per IP address.
  • Authenticated accounts benefit from higher tier quotas.

What Is My IP: technical reference, use cases and FAQ

How What Is My IP works

The address shown is the source address of the TCP connection as the server observed it — the public address of whatever NAT device, proxy or VPN egress your traffic last passed through, not the address configured on your machine. Behind home or corporate NAT your device holds an RFC 1918 address that never appears on the internet.

When a request passes through proxies or a CDN, the original client address is carried in headers: the legacy X-Forwarded-For chain or the standardised Forwarded header (RFC 7239). Those headers are trivially spoofable by the client, so they are only trustworthy when appended by an infrastructure layer you control and when everything downstream refuses to accept them from arbitrary sources.

When to use it: real-world scenarios

Confirming a VPN or proxy is actually carrying your traffic

If the address shown is your ISP's rather than the VPN egress, the tunnel is down or split tunnelling is routing this traffic outside it.

Adding your address to an allowlist

Database firewalls, admin panels and SSH bastions are commonly restricted by source address. Residential addresses change, so re-check after a router reboot.

Verifying IPv6 connectivity

Seeing whether you are presented over IPv4 or IPv6 tells you which stack your traffic actually preferred, which matters when debugging dual-stack issues.

Diagnosing geolocation mismatches

Services that block or localise by address use this same value. Seeing it explains why a site thinks you are in another country.

Pro tips

  • This address identifies your egress point, not your device. Everyone behind the same NAT shares it.
  • Residential addresses are usually dynamic. An allowlist entry based on one will break, often at the least convenient moment.
  • If you see an IPv6 address, your traffic preferred IPv6. Some allowlists only cover IPv4 — add both or force one.
  • Never trust X-Forwarded-For from an untrusted client. Configure your proxy to overwrite it and your application to read only the hop you control.

Limitations and edge cases

What this tool deliberately does not do, and where it will disagree with other implementations.

  • Shows the address as seen by this server only; a different destination may see a different egress address.
  • Geolocation derived from an address is approximate and frequently wrong at city level, especially for mobile and CGNAT users.
  • Carrier-grade NAT means many subscribers share one address, so it does not identify a subscriber.
  • Corporate proxies and CDNs can present addresses unrelated to your physical location.

Frequently asked questions

Why is this different from the address in my network settings?
Your device holds a private address behind NAT. The public address belongs to your router or your provider's egress, and that is what servers on the internet see.
Does this reveal my exact location?
No. Address-based geolocation is approximate and often resolves to a provider facility rather than to you. Mobile and CGNAT addresses are especially unreliable.
Why does my address keep changing?
Most residential connections use dynamic assignment, so the address can change on lease renewal or router restart. A static address usually requires a business plan.
Should I hide my IP address?
Every site you visit necessarily sees it — that is how routing works. A VPN substitutes its egress address for yours, moving trust from your ISP to the VPN provider rather than removing it.
Ask YAS AI
🍪 Cookies & privacy. Essential cookies keep you signed in and remember language and theme. Google AdSense and reCAPTCHA are Google technologies: AdSense runs only after Accept All; reCAPTCHA loads on sign-in and contact forms. See how Google uses data: https://policies.google.com/technologies/partner-sites cookie policy · privacy policy.
Settings