https://jsbin.com/nabapojupu/edit?js,console
Snippet which it runs:
var xhttp = new XMLHttpRequest();
xhttp.open('GET', window.origin, true);
xhttp.onreadystatechange = function () {
if (this.readyState == 4) {
console.log(this);
}
};
xhttp.send();
The image below is a screenshot of the above link with the browser network tab open; Highlighted is the IP of the domain requested..
Is it possible to access the request IP in JavaScript?