Request Header Parser Returning Heroku's Data?

I created an api for returning the required info and I have deployed it to Heroku. It returns an ip address, a language and an os. The strange thing is it returns linux as the os and an ip address that is not mine.

This is what I get when I run the app locally:

{"ipaddress":"::1","language":"en-US","software":"Windows_NT 10.0.14393"}

Here is what I get when I use the app on Heroku:

{"ipaddress":"::ffff:10.109.132.249","language":"en-US","software":"Linux 3.13.0-105-generic"}

Is it returning the os + ip address that Heroku is using? I was wondering if anyone could shed light on what I am doing incorrectly.

I have my project here: https://request-header-parser-micro.herokuapp.com/

My code is here: https://github.com/purpledrumsticks/FCC-Request-Header-Parser

The os module does tell you about the host OS rather than what’s on the request header, which is where you want to get the info. By default, the request header’s IP field will also include the IPV6 address, so you’ll need to account for that somehow. The last set of digits should match your public IP, though.

Thank you for the clarification! I will make changes accordingly. :slight_smile: