FICTURE7 / uberstrok

An effort to write an UberStrike server emulator.
MIT License
12 stars 10 forks source link

Make it possible for servers.json to resolve hostnames #25

Closed Anjum9694 closed 5 years ago

Anjum9694 commented 5 years ago

If anyone with a dynamic IP wants to host a gameserver they will encounter this issue because right now the comm and gameserver portion of the file only accepts IP addresses instead of hostnames.

Every time the router restarts the IP address will be renewed thus have to update the server.json manually.

When a hostname is used the Uberstrike game shows Server is not reachable. The same hostname but as an IP address works.

FICTURE7 commented 5 years ago

That is a neat idea, should definitely be implemented.

recreationx commented 5 years ago

I tried to implement it, you can view it at https://github.com/recreationx/uberstrok/blob/v0.1.x/src/UberStrok.WebServices/ServerManager.cs Works on my machine (using no-ip as a host provider), just build Uberstrok.WebServices with the above code and then test it our yourself.

Anjum9694 commented 5 years ago

Confirmed solution provided by @recreationx works.