Hello I’m trying to finish and upload the Request Header Parser Microservice project. I have all of the solutions working locally, but while uploading it and running it through the website tests, the tests fail on IP address. So far I’ve tried the following:
/*req.ip → doesnt work
- req.connection.remoteAddress → doesnt work
- req.socket.address().address - > doesnt work
- req.header(‘ipaddress’) → doesnt work
- req.header(‘X-Forwarded-For’) → doesnt work*/
Any idea as to why I can’t pass the tests?
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36.
Challenge: Request Header Parser Microservice
Link to the challenge: