Skip to content

Commit

Permalink
Merge pull request #14 from startersclan/docs/readme-add-faq-on-maxmi…
Browse files Browse the repository at this point in the history
…nd.geoip2.exceptions.addressnotfoundexception-when-registering-server-has-a-private-ip-address

Docs (readme): Add FAQ on `MaxMind.GeoIP2.Exceptions.AddressNotFoundException` when registering server has a private IP address
  • Loading branch information
leojonathanoh authored Nov 7, 2023
2 parents 4eb04a2 + 0ebe1a2 commit f14576e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ docker run --rm -it -p 29900:29900/tcp -p 29901:29901/tcp -p 28910:28910/tcp -p
# Now launch Battlefield 2, and try creating a multiplayer account and logging in and out
```

## FAQ

### Q: Error: `MaxMind.GeoIP2.Exceptions.AddressNotFoundException: The address 192.168.192.3 is not in the database`

A: This error may be safely ignored. The error is seen when the IP of the registering BF2 server is a private IP address instead of a public IP address as seen by `PRMasterServer` (for example, when using docker). For example:

```
[2023-11-07 15:34:11.556] [ServerReport] MaxMind.GeoIP2.Exceptions.AddressNotFoundException: The address 192.168.192.3 is not in the database.
at MaxMind.GeoIP2.DatabaseReader.Execute[T](String ipStr, IPAddress ipAddress, String type, Boolean throwOnNullResponse)
at MaxMind.GeoIP2.DatabaseReader.Execute[T](String ipStr, String type, Boolean throwOnNullResponse)
at MaxMind.GeoIP2.DatabaseReader.Country(String ipAddress)
at PRMasterServer.Servers.ServerListReport.ParseServerDetails(IPEndPoint remote, Byte[] data) in /source/PRMasterServer/Servers/ServerListReport.cs:line 304
```

## Setting up the project

1. Be sure to have [Visual Studio 2013](http://www.microsoft.com/en-us/download/details.aspx?id=40787) installed. You might be able to compile it using previous versions of Visual Studio or using Mono, but this is untested and may not work.
Expand Down

0 comments on commit f14576e

Please sign in to comment.