alfred-ip-address-workflow icon indicating copy to clipboard operation
alfred-ip-address-workflow copied to clipboard

Returns incorrect external IP

Open inspiredearth opened this issue 2 years ago • 4 comments

For as long as I can recall (a year or more), the workflow doesn’t return my correct external IP.

It comes back with the following: image

I am located in New Zealand. That IP address is from a broadband connection on the COX network, in the USA. https://www.ip-tracker.org/lookup.php?ip=184.189.4.152

Any suggestions as to why it doesn’t come back with my correct external IP?

inspiredearth avatar Jun 08 '22 08:06 inspiredearth

That's odd! I don't know exactly why that would be the case. The workflow uses an external service to discern your external IP.

Do you get the same (incorrect) IP when you visit https://icanhazip.com/ directly?

alexchantastic avatar Jun 08 '22 08:06 alexchantastic

Yes, same incorrect IP comes up.

I’ve discovered what the issue is. I use DNS servers from a service called Getflix. It should only impact my apparent IP when I am accessing services like Netflix, Amazon Prime Video, and a range of US streaming services.

It seems that for some reason when I am using Getflix DNS servers, that particular IP lookup server (icanhazip) returns a US IP address.

I’ve not seen that occurring when I use numerous other online external IP services (like whatismyip, and others). Seems there’s something about the icanhazip service that triggers Getflix into (wrongly) determining it’s a request from Amazon, Netflix, etc.

So it seems we can close this issue.

I appreciate your quick response.

On 8/06/2022, at 8:54 PM, Alex Chan @.***> wrote:

That's odd! I don't know exactly why that would be the case. The workflow uses an external service to discern your external IP.

Do you get the same (incorrect) IP when you visit https://icanhazip.com/ https://icanhazip.com/ directly?

— Reply to this email directly, view it on GitHub https://github.com/alexchantastic/alfred-ip-address-workflow/issues/11#issuecomment-1149644536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFC6A5RETBE6L4D6PDPNETVOBNUJANCNFSM5YFTYOFA. You are receiving this because you authored the thread.

inspiredearth avatar Jun 08 '22 09:06 inspiredearth

Thanks for debugging! Previously, this workflow used https://ifconfig.co/ as the external service. If that displays the correct IP, can just swap out the URLs (or just roll back to v1.1.1).

I may switch to https://whatismyip.akamai.com which seems to have better response times. Let me know if that returns the correct IP for you.

alexchantastic avatar Jun 08 '22 16:06 alexchantastic

Hi Alex …

This reports my correct IP — icanhazip.com http://icanhazip.com/ — as does whatismyip.

I’ll switch it out for icanhazip.com http://icanhazip.com/

Thanks very mch.

Jonathan

On 9/06/2022, at 4:21 AM, Alex Chan @.***> wrote:

Thanks for debugging! Previously, this workflow used https://ifconfig.co/ https://ifconfig.co/ as the external service. If that displays the correct IP, can just swap out the URLs (or just roll back to v1.1.1 https://github.com/alexchantastic/alfred-ip-address-workflow/releases/tag/v1.1.1).

I may switch to https://whatismyip.akamai.com https://whatismyip.akamai.com/ which seems to have better response times. Let me know if that returns the correct IP for you.

— Reply to this email directly, view it on GitHub https://github.com/alexchantastic/alfred-ip-address-workflow/issues/11#issuecomment-1150129466, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFC6A2HAJJKLKIF6XUTHPDVODCCBANCNFSM5YFTYOFA. You are receiving this because you authored the thread.

inspiredearth avatar Jun 11 '22 02:06 inspiredearth

The v1.2.0 release adds a user configuration option to easily change the external IP service. Please refer to instructions in the README on how to leverage this option.

alexchantastic avatar Aug 08 '22 00:08 alexchantastic