<?php
require_once __DIR__ . '/../../config.php';
require_once __DIR__ . '/../../includes/functions.php';

$page_title   = 'What is My IP Address? – Find and Understand Your Public IP';
$page_desc    = 'Everything about your public IP address: how to find it, what it reveals, the difference between public and private IPs on ipcheck.tools.';
$page_current = 'wissen';

$ips  = get_visitor_ips();
$ipv4 = $ips['ipv4'] ?? '';
$ipv6 = $ips['ipv6'] ?? '';

require_once __DIR__ . '/../../en/header.php';
?>

<div class="hero">
  <div class="hero-label">Knowledge</div>
  <div class="hero-title">What is my IP address?</div>
  <div class="hero-sub">Everything about your public IP address and what it reveals</div>
</div>

<div class="wrap">

  <div class="ad-slot"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-8287576653347400" data-ad-slot="2715725452" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div>

  <?php if ($ipv4 || $ipv6): ?>
  <div class="card card-blue">
    <div class="card-title"><i class="ti ti-network"></i> Your current IP address</div>
    <?php if ($ipv4): ?>
    <div class="data-row">
      <span class="dk">IPv4</span>
      <span class="dv mono blue"><?= h($ipv4) ?>
        <button onclick="navigator.clipboard.writeText('<?= h($ipv4) ?>')" class="copy-btn" style="margin-top:0; margin-left:8px; font-size:11px; padding:2px 8px;">
          <i class="ti ti-copy"></i>
        </button>
      </span>
    </div>
    <?php endif; ?>
    <?php if ($ipv6): ?>
    <div class="data-row">
      <span class="dk">IPv6</span>
      <span class="dv mono" style="font-size:11px; color:var(--purple-dim);"><?= h($ipv6) ?></span>
    </div>
    <?php endif; ?>
    <div style="margin-top:12px; display:flex; gap:8px; flex-wrap:wrap;">
      <a href="/en/" class="btn btn-primary" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-home"></i> Full IP details
      </a>
      <?php if ($ipv4): ?>
      <a href="/en/ip-lookup.php?ip=<?= urlencode($ipv4) ?>" class="btn btn-ghost" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-world-search"></i> IP Lookup
      </a>
      <?php endif; ?>
    </div>
  </div>
  <?php endif; ?>

  <div class="card">
    <div class="card-title"><i class="ti ti-info-circle"></i> Public vs Private IP address</div>
    <div class="grid2" style="margin-top:8px;">
      <div>
        <div style="font-weight:600; color:var(--green); margin-bottom:8px;">Public IP</div>
        <p style="font-size:13px; color:var(--text3); line-height:1.7;">Your public IP is assigned by your ISP and is visible to websites you visit. It identifies your connection on the internet. All devices in your home share the same public IP.</p>
        <div class="data-row"><span class="dk">Assigned by</span><span class="dv">Your ISP</span></div>
        <div class="data-row"><span class="dk">Visible to</span><span class="dv">All websites</span></div>
        <div class="data-row"><span class="dk">Example</span><span class="dv mono">203.0.113.42</span></div>
      </div>
      <div>
        <div style="font-weight:600; color:var(--orange); margin-bottom:8px;">Private IP</div>
        <p style="font-size:13px; color:var(--text3); line-height:1.7;">Your private IP is assigned by your router via DHCP and is only visible within your local network. Websites cannot see your private IP.</p>
        <div class="data-row"><span class="dk">Assigned by</span><span class="dv">Your router (DHCP)</span></div>
        <div class="data-row"><span class="dk">Visible to</span><span class="dv">Local network only</span></div>
        <div class="data-row"><span class="dk">Example</span><span class="dv mono">192.168.1.42</span></div>
      </div>
    </div>
  </div>

  <div class="card">
    <div class="card-title"><i class="ti ti-map-pin"></i> What does your IP reveal?</div>
    <div class="data-row"><span class="dk" style="color:var(--green);">Country</span><span class="dv">Yes – reliably detectable</span></div>
    <div class="data-row"><span class="dk" style="color:var(--green);">ISP / Provider</span><span class="dv">Yes – always visible</span></div>
    <div class="data-row"><span class="dk" style="color:var(--orange);">City / Region</span><span class="dv">Approximately – can be inaccurate</span></div>
    <div class="data-row"><span class="dk" style="color:var(--red);">Street address</span><span class="dv">No – not possible from IP alone</span></div>
    <div class="data-row"><span class="dk" style="color:var(--red);">Your name</span><span class="dv">No – only ISP has this data</span></div>
  </div>

  <div class="card">
    <div class="card-title"><i class="ti ti-shield"></i> How to hide your IP address</div>
    <div class="data-row"><span class="dk">VPN</span><span class="dv" style="font-size:12px;">Replaces your IP with VPN server IP – best protection</span></div>
    <div class="data-row"><span class="dk">Proxy</span><span class="dv" style="font-size:12px;">Hides IP for browser traffic only</span></div>
    <div class="data-row"><span class="dk">Tor</span><span class="dv" style="font-size:12px;">Maximum anonymity but very slow</span></div>
    <div class="data-row"><span class="dk">Mobile data</span><span class="dv" style="font-size:12px;">Different IP than home connection</span></div>
  </div>

  <div class="card">
    <div class="card-title"><i class="ti ti-arrow-right"></i> Tools for your IP</div>
    <div style="display:flex; gap:8px; flex-wrap:wrap;">
      <a href="/en/" class="btn btn-primary" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-home"></i> Show my IP
      </a>
      <a href="/en/ip-lookup.php" class="btn btn-ghost" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-world-search"></i> IP Lookup
      </a>
      <a href="/en/blacklist.php" class="btn btn-ghost" style="font-size:12px; padding:6px 14px;">
        <i class="ti ti-shield-search"></i> Blacklist Check
      </a>
    </div>
  </div>

  <div class="ad-slot"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-8287576653347400" data-ad-slot="2715725452" data-ad-format="auto" data-full-width-responsive="true"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div>

  <div class="tools-row">
    <a href="/en/knowledge/"    class="tool-btn"><i class="ti ti-book"></i><span>Knowledge</span></a>
    <a href="/en/"              class="tool-btn"><i class="ti ti-home"></i><span>My IP</span></a>
    <a href="/en/ip-lookup.php" class="tool-btn"><i class="ti ti-world-search"></i><span>IP Lookup</span></a>
    <a href="/en/ipv4.php"      class="tool-btn"><i class="ti ti-network"></i><span>IPv4 Detail</span></a>
    <a href="/en/blacklist.php" class="tool-btn"><i class="ti ti-shield-search"></i><span>Blacklist</span></a>
  </div>

  <div class="seo-box">
    <h2>Your public IP address – what it is and what it means</h2>
    <p>Your public IP address is assigned by your Internet Service Provider and identifies your connection on the internet. Every device in your home network shares the same public IP. From your IP address, websites can determine your approximate location (country and city) and your ISP – but not your name or exact address. To protect your privacy online, a VPN replaces your real IP with the VPN server's IP address.</p>
  </div>

<?php require_once __DIR__ . '/../../en/footer.php'; ?>
