This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
|
const http = require("http");
|
|
|
|
const request = http.request({ host: "whatismyip.akamai.com" }, (response) => {
|
|
response.on("data", (data) => {
|
|
process.stdout.write(data);
|
|
});
|
|
});
|
|
|
|
request.on("error", (error) => {
|
|
console.error(error);
|
|
});
|
|
|
|
request.end();
|