Page 2 of 2

Re: Missing Country Flags

Posted: Tue Feb 15, 2022 7:12 pm
by Buggie
From my experience this is a problem with database file. Some players work. Some not.

Re: Missing Country Flags

Posted: Fri Mar 11, 2022 3:06 pm
by Buggie
Barbie wrote: Tue Feb 15, 2022 3:36 pm Any ideas? :noidea
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

Posted: Sun Mar 13, 2022 9:31 pm
by Barbie
Barbie wrote: Tue Feb 15, 2022 3:36 pmthe last months the country flags are not all visible anymore in network play
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.)

Re: Missing Country Flags

Posted: Wed Sep 07, 2022 5:18 pm
by Hitman
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]=

Re: Missing Country Flags

Posted: Wed Sep 07, 2022 8:04 pm
by Barbie
Hitman wrote: Wed Sep 07, 2022 5:18 pm 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?
In 2016 I started the thread Notes to IpToCountry services and updated it in March 2022 the last time.

Re: Missing Country Flags

Posted: Thu Sep 08, 2022 12:11 am
by Que
So are we down to 1 server for iptocountry?
Unrealadmins.org?

Re: Missing Country Flags

Posted: Thu Sep 08, 2022 11:45 am
by Barbie
Que wrote: Thu Sep 08, 2022 12:11 am So are we down to 1 server for iptocountry?
Unrealadmins.org?
:omfg:
Do you refer to Hitman's post?
I rechecked the IpToCountry services today and found 4 working ones.

Re: Missing Country Flags

Posted: Fri Sep 09, 2022 9:22 pm
by Hitman
Barbie wrote: Thu Sep 08, 2022 11:45 am
Que wrote: Thu Sep 08, 2022 12:11 am So are we down to 1 server for iptocountry?
Unrealadmins.org?
:omfg:
Do you refer to Hitman's post?
I rechecked the IpToCountry services today and found 4 working ones.
Still confusing for some, can you put up a copy off your own working settings?

Re: Missing Country Flags

Posted: Sat Sep 10, 2022 12:44 am
by Que
here's mine;

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
looks like this release has files for you to setup your own server;

Image Image

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

For some reason Iptocountry gets some players countries totally wrong. No idea why.

Automatically merged

Barbie wrote: Thu Sep 08, 2022 11:45 am I rechecked the IpToCountry services today and found 4 working ones.
How did you check them.. just manually through webbrowser?

Re: Missing Country Flags

Posted: Sat Sep 10, 2022 9:54 am
by Barbie
Que wrote: Sat Sep 10, 2022 3:02 am How did you check them.. just manually through webbrowser?
Yep. Recently I have added a link named test where it can be tested by web browser easily.

Re: Missing Country Flags

Posted: Sat Sep 10, 2022 5:02 pm
by Hitman
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]=

Re: Missing Country Flags

Posted: Sat Sep 10, 2022 5:13 pm
by Barbie
Hitman wrote: Sat Sep 10, 2022 5:02 pm 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
Yep, a bug in IpToCountry, as I wrote above.

Automatically merged

I think I found the error: switching to next server is only done when DNS resolving fails.
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]=

Re: Missing Country Flags

Posted: Sat Sep 10, 2022 10:07 pm
by Que
But what about all the data that fills the ini with the 255 entries?

What are these for?

Re: Missing Country Flags

Posted: Sun Sep 11, 2022 12:40 am
by Barbie
Que wrote: Sat Sep 10, 2022 10:07 pm But what about all the data that fills the ini with the 255 entries?

What are these for?
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.