The api says I’m on “54.234.148.191, 23.21.64.131”. I really can’t understand why it responds with two IP addresses, anyway both of them are referred to AWS machines and none of them is mine. While I write this note, others online sites agree to say my IP is 94.34.72.31.
Join in the discussion - add comment below:
Just found the solution: I was using the test client functionality, so those are probably the mashape server ip addresses. ^^
+1
+1
Yes, you are right 😃
I’m not sure if I have to remove the Mashape Proxy’s IP… anyway thanks for using my little API 😃
You should parse the “X-Forward-For” header and only get the first IP. The list of IPs is delimited by a comma, spec: http://en.wikipedia.org/wiki/X-Forwarded-For#Format