find my ip java script code example
Example: how to get ip address in javascript
fetch('https://api.ipify.org/?format=json')
.then(response => response.json())
// Returns
{
"ip": "user_ip"
}
fetch('https://api.ipify.org/?format=json')
.then(response => response.json())
// Returns
{
"ip": "user_ip"
}