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

Incorrect location information for localhost: 127.0.0.1 #5

Open
sanmak opened this issue Jun 30, 2021 · 2 comments
Open

Incorrect location information for localhost: 127.0.0.1 #5

sanmak opened this issue Jun 30, 2021 · 2 comments

Comments

@sanmak
Copy link

sanmak commented Jun 30, 2021

For localhost IP address i.e 127.0.0.1, Japan comes as the Country.
Response is given below:

{
	"range": [
		2130444288,
		2147483648
	],
	"country": "JP",
	"region": "",
	"eu": "0",
	"timezone": "Asia/Tokyo",
	"city": "",
	"ll": [
		35.6897,
		139.6895
	],
	"metro": 0,
	"area": 500
}
@steevhise
Copy link

lol

@rathod-sahaab
Copy link

rathod-sahaab commented Aug 18, 2022

Should throw error or return null/undefined for local network ips 172, 192 etc

UPDATE: I looked at geoip-lite and it returns null in these cases.

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

3 participants