Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong IP Location #2229

Closed
SamadiPour opened this issue Nov 20, 2024 · 3 comments
Closed

Wrong IP Location #2229

SamadiPour opened this issue Nov 20, 2024 · 3 comments

Comments

@SamadiPour
Copy link

Describe the bug
After noticing that my IP is listed as "US", I wondered if there might be an issue with the provider that maps IP addresses to locations. I checked the code and found out that you retrieve the country using the /usr/sbin/system_profiler SPAirPortDataType command. I did some research and asked ChatGPT, and although I couldn't find any documentation to support this, I believe the country in the response does not correspond to the IP address; instead, it relates to the broadcast country code of the Wi-Fi.
Here is an example discussion related to this parameter: https://community.tp-link.com/en/home/forum/topic/174670.

Details:

  • Device: Macbook Pro M1
  • macOS: 15.1.1
  • Application version: 2.11.16

Also related to #2183

@exelban
Copy link
Owner

exelban commented Nov 20, 2024

so, what do you propose?

@SamadiPour
Copy link
Author

I don't have a solution for your self-hosted API, but you can use a free API that doesn't require an API key.

For Example:

Every service I know has a rate limit, but since you are sending the request from the user's device, it shouldn't matter.

@exelban
Copy link
Owner

exelban commented Nov 24, 2024

Since there is no better solution than the native one, it looks like nothing could be changed. Ping me if someone has a better solution than the existing one.

@exelban exelban closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants