Get ip address?

Does that point to the proxy though?

Can you use the method here? https://glitch.happyfox.com/kb/article/9-how-do-i-add-a-custom-domain-a-cname-or-a-record-for-my-custom-domain/

Running ping glitch.edgeapp.net returns that. It should work in theory.

1 Like

That’s the same method on the article. Best for the OP to do it themselves to double check and follow official documentation

1 Like

When I run curl ifconfig.co, I get Unable retrieve IP Address.

<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>IP Address Display</title>
</head>
<body>
    <h1>Your IP Address</h1>
    <p id="ip-address">Loading...</p>

    <script>
        // Use JavaScript to fetch and display the IP address
        fetch('https://ifconfig.co/ip')
            .then(response => response.text())
            .then(ipAddress => {
                // Display the IP address in the 'ip-address' paragraph
                document.getElementById('ip-address').textContent = `Your IP Address: ${ipAddress}`;
            })
            .catch(error => {
                // Handle errors, e.g., display an error message
                document.getElementById('ip-address').textContent = 'Unable to retrieve IP address.';
            });
    </script>
</body>
</html>