Missing Country Flags
Re: Missing Country Flags
From my experience this is a problem with database file. Some players work. Some not.
Re: Missing Country Flags
Need debug then. Get some IPs which not detected, check in database.
If it fine, need go next and check code for understand why it is not work.
If not fine, need search more fresh db.
Also some players show correctly. Some other players too. So I think base is outdated or broken or in wrong format after some records.
Re: Missing Country Flags
I've found the reason: the first given lookup server in server's IpToCountry.ini was "www.wharthog.com" which has not responded since mid 2021. IpToCountry should have tried the next given items in the list but it seems that does not work.
Now the first entry (that means it is at index 0) is a working service and the country flags work again.
(See also List of working IpToCountry services.)
"If Origin not in center it be not in center." --Buggie
Re: Missing Country Flags
Seams like most dont respond so atm I only 1 left, is there some guide to set it up yourself since I have a server-machine?
[IpToCountry.LinkActor]
QueryServerHost[0]=utgl.unrealadmin.org
QueryServerHost[1]=
QueryServerHost[2]=
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=
QueryServerFilePath[2]=
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=170.249.236.23
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
[IpToCountry.LinkActor]
QueryServerHost[0]=utgl.unrealadmin.org
QueryServerHost[1]=
QueryServerHost[2]=
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=
QueryServerFilePath[2]=
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=170.249.236.23
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
Re: Missing Country Flags
In 2016 I started the thread Notes to IpToCountry services and updated it in March 2022 the last time.
"If Origin not in center it be not in center." --Buggie
Re: Missing Country Flags
So are we down to 1 server for iptocountry?
Unrealadmins.org?
Unrealadmins.org?
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
Re: Missing Country Flags
"If Origin not in center it be not in center." --Buggie
Re: Missing Country Flags
Still confusing for some, can you put up a copy off your own working settings?Barbie wrote: ↑Thu Sep 08, 2022 11:45 am
Do you refer to Hitman's post?
I rechecked the IpToCountry services today and found 4 working ones.
Re: Missing Country Flags
here's mine;
looks like this release has files for you to setup your own server;
Note: there's nothing in the .logs to indicate which server IPToCountry is connected to or querying.
provided the sources inside attached file perhaps someone could output a few lines to the .log file indicating which server is being utilized and if any problems connecting
to query servers then output that info also to the .logs.
For some reason Iptocountry gets some players countries totally wrong. No idea why.
Code: Select all
[ipToCountry.LinkActor]
QueryServerHost[0]=iptocountry.ut-files.com
QueryServerHost[1]=iptocountry.unrealteam.de
QueryServerHost[2]=www.unrealkillers.com
QueryServerHost[3]=utgl.unrealadmin.org
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=/iptocountry16.php
QueryServerFilePath[2]=/iptocountry/iptocountry16.php
QueryServerFilePath[3]=/iptocountry16.php
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=192.111.155.210
resolvedAddress[1]=188.68.47.21
resolvedAddress[2]=172.67.137.125
resolvedAddress[3]=158.106.137.11
MaxTimeout=10
ErrorLimit=5
bNeverPurgeAddress=False
bSpawnAddon=True
Note: there's nothing in the .logs to indicate which server IPToCountry is connected to or querying.
provided the sources inside attached file perhaps someone could output a few lines to the .log file indicating which server is being utilized and if any problems connecting
to query servers then output that info also to the .logs.
Automatically merged
Automatically merged
How did you check them.. just manually through webbrowser?Barbie wrote: ↑Thu Sep 08, 2022 11:45 am I rechecked the IpToCountry services today and found 4 working ones.
- Attachments
-
- ipToCountry-1.6.zip
- (961.62 KiB) Downloaded 23 times
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
Re: Missing Country Flags
Yep. Recently I have added a link named test where it can be tested by web browser easily.
"If Origin not in center it be not in center." --Buggie
Re: Missing Country Flags
It seams that if the first server in line get a lag/hickup it dont jump to the next so it shows some other flag, so I created my own on the machine we rent (in Germany) and all works perfect so far.
QueryServerHost[0]=unrealmayhem.com
QueryServerHost[1]=
QueryServerHost[2]=
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=
QueryServerFilePath[2]=
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=176.9.104.176
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
QueryServerHost[0]=unrealmayhem.com
QueryServerHost[1]=
QueryServerHost[2]=
QueryServerHost[3]=
QueryServerFilePath[0]=/iptocountry16.php
QueryServerFilePath[1]=
QueryServerFilePath[2]=
QueryServerFilePath[3]=
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
resolvedAddress[0]=176.9.104.176
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
Re: Missing Country Flags
Yep, a bug in IpToCountry, as I wrote above.
Automatically merged
If there is already an IP address stored in IpToCountry.ini ("resolvedAddress") for that server, DNS resolving does not happen and next server is never taken.
Workaround: set all 4 variables resolvedAddress to an empty string and write protect IpToCountry.ini.
Example for IpToCountry.ini
Code: Select all
[IpToCountry.LinkActor]
QueryServerHost[0]=unrealkillers.com
QueryServerHost[1]=utgl.unrealadmin.org
QueryServerHost[2]=iptocountry.ut-files.com
QueryServerHost[3]=forum.gameclan.pl
QueryServerFilePath[0]=/iptocountry/iptocountry16.php
QueryServerFilePath[1]=/iptocountry16.php
QueryServerFilePath[2]=/iptocountry16.php
QueryServerFilePath[3]=/iptocountry/index.php
QueryServerPort[0]=80
QueryServerPort[1]=80
QueryServerPort[2]=80
QueryServerPort[3]=80
MaxTimeout=10
ErrorLimit=5
bNeverPurgeAddress=False
bSpawnAddon=True
IPDataIndex=0
resolvedAddress[0]=
resolvedAddress[1]=
resolvedAddress[2]=
resolvedAddress[3]=
"If Origin not in center it be not in center." --Buggie
Re: Missing Country Flags
But what about all the data that fills the ini with the 255 entries?
What are these for?
What are these for?
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
Re: Missing Country Flags
Do you mean
var config string IPData[256];
? These are cache entries for client's IP, hostname and country. Once determined, the entries stays in memory until next server restart/next map (not sure) regardless of a write protected INI file so that the performance impact should be neglectable."If Origin not in center it be not in center." --Buggie