Is it possible to get the client Ip address from the response of ta fetch? Something like this
fetch(url)
.then((response) => {
console.log("My IP Address: ", response.originIP);
})
Is it possible to get the client Ip address from the response of ta fetch? Something like this
fetch(url)
.then((response) => {
console.log("My IP Address: ", response.originIP);
})
That is not possible. All the available methods of the fetch response are listed here: https://developer.mozilla.org/en-US/docs/Web/API/Response
You could however create a web service to return an IP address: How to get client's IP address using JavaScript?