Start Anywhere Media

  • Home
  • Work
  • Tools
  • Blog
  • Contact

What’s My IP Address?

  • By adam@startanywheremedia.com

Instant gratification! Know your IP address.

Those pesky, ephemeral dynamic IP addresses…

Loading...

If you're ready to up your nerd game...

				
					<div id="ip-container">Loading...</div>
<button onclick="copyIP()">Copy Your Public IP</button>

<script>
    async function fetchIP() {
        try {
            const response = await fetch('https://api.ipify.org?format=json'); // IPv4 endpoint
            const data = await response.json();
            document.getElementById('ip-container').innerText = data.ip;
        } catch (error) {
            document.getElementById('ip-container').innerText = "Failed to load IP.";
        }
    }

    function copyIP() {
        const ipText = document.getElementById('ip-container').innerText;
        navigator.clipboard.writeText(ipText).then(() => {
            alert("IP Address copied to clipboard!");
        }).catch(err => {
            alert("Failed to copy.");
        });
    }

    fetchIP();
</script>
				
			
PrevPreviousGA4 Form_submit Event for Elementor Forms within a Popup

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

©2025 Start Anywhere Media

Start Anywhere Media is proudly powered by WordPress

  • Home
  • Privacy
  • Search
  • Sitemap
  • Contact
  • Email Us
To Top
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.