Ulysses Stuff > Releases

ULX GeoIP -- Look up geographical information on a user based on their IP

<< < (2/6) > >>

JamminR:
Sadly, it doesn't seem to support IPv6 (not that many sites do)
It's my understanding that one of the first 4 :blah: subsets in a ipv6 address actually tells some type of location information.
2601:e:c580:cb2:d94b:xxxx:yyyy:zzzz (part of my current v6 ip)

Bytewave:

--- Quote from: JamminR on October 25, 2014, 07:54:17 PM ---Sadly, it doesn't seem to support IPv6 (not that many sites do)
It's my understanding that one of the first 4 :blah: subsets in a ipv6 address actually tells some type of location information.
2601:e:c580:cb2:d94b:xxxx:yyyy:zzzz (part of my current v6 ip)


--- End quote ---
Possibly.
I might try and find a GeoIP database for IPv6 and implement it, based on if a : is detected. I'll look into that.
--- Quote from: JamminR on October 25, 2014, 07:17:59 PM ---Without me going and looking, do they have a limited TOS?
Meaning, only so many look ups per day/timeframe?
I've seen server IPs banned from some tools like this due to TOS abuse.

Either way, nice idea.
If there is a TOS limit, perhaps add the limit to the script.
Would hate to hit it, but, at least it would tell us instead of an odd error/complaint here asking 'it breaks randomly'

EDIT - WOW.
1) It doesn't just list the lat/long of where my ISP is located, but, it lists the actual location of where the cable plant office/ splits for of my IP (I've rarely seen this accuracy in geo services)
2) Quote from the site "Limits - API usage is limited to 10,000 queries per hour."

Though it might be good to include that in the script anyway, 10000 is likely never to be hit, even if one were to set up the command for all player joins.

--- End quote ---
That's why I never included it- 10,000 shouldn't ever be hit in an hour, even by large servers. I'll add that limit, I guess, if the issue arises.

Bytewave:
Looks like I may have found an IPv6 GeoIP database with a Rest API. Gonna implement this into the script here shortly.

EDIT: Though it might take a few tries to get right... problem I currently face is trying to discern whether an IP is IPv6 or IPv4. Was going to see if a ":" existed in the IP, but then I realized LocalPlayer():IPAddress() returns IP + port... making the returned string "127.0.0.1:27005". :/

JamminR:
Does Gmod/Source server even allow for IPv6?
Though adding it would be a nice future proof...I think my statement was more a note than a 'it should be included'.

As for testing for it, check the IP for more than one colon and or no periods. Periods, to my knowledge, aren't in ipv6.
Presume end colon would be the port # after.

Bytewave:

--- Quote from: JamminR on October 26, 2014, 12:06:36 PM ---Does Gmod/Source server even allow for IPv6?
Though adding it would be a nice future proof...I think my statement was more a note than a 'it should be included'.

As for testing for it, check the IP for more than one colon and or no periods. Periods, to my knowledge, aren't in ipv6.
Presume end colon would be the port # after.

--- End quote ---
Yeah... see this is why I shouldn't respond to a post at 10:34 PM CT. Obvious answer is obvious. :/
I'll check and see-- mostly by trail and error, because nothing is well-documented in the world of the Garry's Mod Wiki.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version