The second freeCodeCamp API Project for the Back-End curriculum.
- I can get the IP address, language and operating system for my browser.
- Visit https://endurable-sky.glitch.me/api/whoami
- You receive this type of output:
{ "ipaddress": 1.2.3.4.5, "language": "en-US" , "software": "OS: Windows 10.0, Browser: Firefox"}
- NodeJS
- Express
- cors
- body-parser
- express-useragent
- Glitch
- Github
The ip address being outputted was incorrect.
I searched for 'correct ip address express' on DuckDuckGo. I found a Stack Overflow that mentioned a solution. The author mentioned the express proxy docs express proxies.
Haozhun's Solution Stack Overflow