Resource icon

Approved GeoIP 2.2

No permission to download

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
DreTaX submitted a new resource:

GeoIP - Providing Location API for plugins to use

Description:

This plugin is able to provide local information of the given IP address on a local database, making It safer/faster for anyone.

Server owners just have to install this plugin as a C# plugin only.

Plugin Devs:

Python Example:

Python:
__author__ = 'DreTaX'
__version__ = '1.0'

import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite

try:...
Read more about this resource...
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,463
342
83
Australia
try:
clr.AddReferenceByPartialName("GeoIP")
import GeoIP
from GeoIP import GeoIP as RealGeoIP
except:
raise ImportError("Failed to reference the GeoIP.dll, Download from: http://fougerite.com/resources/geoip.135/")

Throws ImportError, Removed the try/except and it says its a NoneType.
I placed the GeoIP.Dll in modules and the ini in /save/
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
try:
clr.AddReferenceByPartialName("GeoIP")
import GeoIP
from GeoIP import GeoIP as RealGeoIP
except:
raise ImportError("Failed to reference the GeoIP.dll, Download from: http://fougerite.com/resources/geoip.135/")

Throws ImportError, Removed the try/except and it says its a NoneType.
I placed the GeoIP.Dll in modules and the ini in /save/
Modules/GeoIP/GeoIP.dll?

Save/GeoIP/CSV.ini

Did you add It to fougerite
Cfg to load it?

Cuz it worked for me
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
DreTaX updated GeoIP with a new update entry:

1.1

  • Using GeoIP2 databases, and we have access to the city files too. The 4th ini file won't be included in the package, but I will give a link soon in the description. It is being hosted by Pluton-Team, and thanks to iScripters instead of reading 200MB we can enjoy using the SQL speed of It.
Read the rest of this update entry...
 

tarynkelley

Moderator
Moderator
Nov 14, 2015
559
107
28
Parts Unknown
GeoIP doesn't work anymore. All players are shown as from Unknown location

https://stats.pluton-team.org/PlutonGeoIP/?ip=

returns 404 Error not found.

Also the SSL certificate is not correct or something is wrong with the ssl settings (The certificate is only valid for pluton.team (Error code: ssl_error_bad_cert_domain))

BannedPeople says:

[IronPython] Error in plugin BannedPeople:
Traceback (most recent call last):
File "<string>", line 338, in On_PlayerConnected
SystemError: Error getting response stream (Write: The authentication or decrypt
ion has failed.): SendFailure

and

[IronPython] Error in plugin BannedPeople:
Traceback (most recent call last):
File "<string>", line 338, in On_PlayerConnected
SystemError: The remote server returned an error: (404) Not Found.
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
GeoIP doesn't work anymore. All players are shown as from Unknown location

https://stats.pluton-team.org/PlutonGeoIP/?ip=

returns 404 Error not found.

Also the SSL certificate is not correct or something is wrong with the ssl settings (The certificate is only valid for pluton.team (Error code: ssl_error_bad_cert_domain))

BannedPeople says:

[IronPython] Error in plugin BannedPeople:
Traceback (most recent call last):
File "<string>", line 338, in On_PlayerConnected
SystemError: Error getting response stream (Write: The authentication or decrypt
ion has failed.): SendFailure

and

[IronPython] Error in plugin BannedPeople:
Traceback (most recent call last):
File "<string>", line 338, in On_PlayerConnected
SystemError: The remote server returned an error: (404) Not Found.
Oh crap. I'm contacting iScripters now.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com

tarynkelley

Moderator
Moderator
Nov 14, 2015
559
107
28
Parts Unknown
o_O

You mean this?

[Settings]
ReadCitiesFromURL=True
URL=http://stats.pluton-team.org/PlutonGeoIP/?ip= <-----------------------------------------

Oh I didn't think about that :D

-----------------------------------------

I changed it to URL=http://stats.pluton.team/PlutonGeoIP/?ip=
and restarted the server but I'm still getting :

SystemError: Error getting response stream (Write: The authentication or decrypt
ion has failed.): SendFailure

I see that http queries to stats.pluton.team will be automatically redirected to https.

This still looks like an issue with the SSL settings/certificate, even though I added the DSTRootCAX3 and Let'sEncryptAuthorityX1 certificate to windows.
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
DreTaX updated GeoIP with a new update entry:

1.2

  • GeoIP Received an update where It is able to read the CityData.ini file without problems, duping It to the memory. This is faster than reading from the URL, especially that the URL is down atm. You may use the local file from now on, but be warned, the file is 200mb, and may use 200mb ram as an addition.
Read the rest of this update entry...
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
DreTaX updated GeoIP with a new update entry:

1.2

  • GeoIP Received an update where It is able to read the CityData.ini file without problems, duping It to the memory. This is faster than reading from the URL, especially that the URL is down atm. You may use the local file from now on, but be warned, the file is 200mb, and may use 200mb ram as an addition.
Read the rest of this update entry...