sindresorhus / public-ip

Get your public IP address - very fast!
MIT License
1.02k stars 65 forks source link

If I call this API from a server, it'll response the public server IP #50

Closed rodrigoenzohernandez closed 4 years ago

rodrigoenzohernandez commented 4 years ago

How can i fix it? I'm on Argentina, I use this API in one of mi projects, but it returns the server public IP instead of the client public IP that is entering to that endpoint trough the navigator. Thanks!

sindresorhus commented 4 years ago

Yes, it gets the IP address for the process that calls it. What you're describing is not how it works.