Tell us what’s happening:
Am I supposed to find, install and use npm packages to complete this challenge? I was trying to get the users ip address with the npm package internal-ip, but no matter what I did it returns undefined and not the users ip. My code testing it is below, it logs undefined in the console. I have the npm installed correctly I believe, because when I just log “internalIp”, it shows the functions available.
I thought an obviously easier way to complete the challenge is just to get json data from another api like cloudflare, but would that be cheating? It doesn’t specifically mention how it’s supposed to be done, just that it should function similarly to the example.
Your code so far
var internalIp = require('internal-ip');
(async () => {
console.log(await internalIp.v6());
console.log(await internalIp.v4());
})();
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36.
Challenge: Request Header Parser Microservice
Link to the challenge:


I was able to complete the challenge now. Thank you for your help!