-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bug report: All location information shows as "Unknown" in Votes #83
Comments
Sexy Polling uses the following service to get location information about the IP address: https://www.ipinfodb.com/ Maybe, this service is not providing a reasonable result for your IP address. Can you check with the provided link? Maybe, some better services are available today and the service, which has been used for a long time, is outdated. I do not have any information about that. Do you have a proposal for a good service regarding IP geo location? |
Yes, same result as whatismyipaddress.com.
It seems that one of the extensions I am using utilizes Geolocation, but unfortunately, I cannot determine whether this information is useful for our current case or not. |
Maybe, IPv6 could be a reason that the geolocation is not resolved. However, testing with https://www.ipinfodb.com also resolved my IPv6 address. On my Joomla internet server, I can only see IPv4 addresses. However other Sexypolling users seem to see IPv6 addresses. See also the discussion in issue #77. Can you check in the backend if votes from your IP in Sexypolling are shown with IPv4 or IPv6 address? Can you check your IP address handling with https://www.test-ipv6.com? Do see IPv4 and IPv6 in parallel? Or only IPv6? |
When I checked the results of my test votes in the Votes section, the IP column displayed "ffff104.28.99.xxx" (with four f's before the IPv4 address / The xxx part is actually a number.). Also, on test-ipv6.com, both IPv4 and IPv6 addresses are shown, with the message "You appear to be IPv6 enabled" and "Your DNS server appears to provide IPv6 internet access." I'm using the latest macOS with Safari, so this IP address issue might be related to Apple's iCloud Private Relay (just my guess). |
Regarding the IP address column displaying as Unknown, I reported it because I was concerned, but if double voting is prevented by managing votes based on user IDs, then the Unknown display itself is not a major issue for me. In fact, through my tests I have confirmed that it is able to prevent double voting. |
I think the "ffff" is the root cause of not resolving the geolocation. It seems that your IP address is already using the IPv6 namespace, which uses a prefix of "::ffff:" to IPv4 addresses. I found a simular issue on stackoverflow. I also identifyed a bug with string handling of IP addresses in Sexypolling. The combination of the bug and the ::ffff: namespace results in the wrong behavior. Based on this analysis, I could fix the issue. |
Hello,
The Votes page has columns for Country, City, and Region, but it seems unable to correctly identify my IP address. All the fields show "Unknown." As a test, I looked up my IP address on whatismyipaddress.com, and it was able to correctly identify my country (although it showed the wrong nearby city and region for City and Region).
Regards
The text was updated successfully, but these errors were encountered: