tiltedphoques / TiltedEvolution

Skyrim and Fallout 4 mod to play online!
https://wiki.tiltedphoques.com/tilted-online/
Other
1.01k stars 208 forks source link

Send server location to master serverlist #247

Open Dragonisser opened 1 year ago

Dragonisser commented 1 year ago

Instead of getting the location on the clientside (in Angular), its better to get the location while the server starts and sending it to the masterlist.

https://github.com/tiltedphoques/TiltedEvolution/pull/226

https://github.com/tiltedphoques/TiltedEvolution/blob/feat/hud-ui/Code/skyrim_ui/src/app/components/server-list/server-list.component.ts#L80=

a1ex4 commented 1 year ago

Maybe the 8mb GeoIP2 IP to Country Lite database can be shipped and used to map IPs to countries, it is Creative Commons Attribution 4.0 International License.

Two formats are available, CSV or mmdb (MaxMind DB), that can be read with maxmind/libmaxminddb.

Dragonisser commented 1 year ago

Maybe the 8mb GeoIP2 IP to Country Lite database can be shipped and used to map IPs to countries, it is Creative Commons Attribution 4.0 International License.

Two formats are available, CSV or mmdb (MaxMind DB), that can be read with maxmind/libmaxminddb.

Ive already looked into it something similar like that but i got stuck and didnt continue further as of now.

https://www.npmjs.com/package/geolib https://www.npmjs.com/package/geoip-lite