CSM icon indicating copy to clipboard operation
CSM copied to clipboard

Add port checking

Open kaenganxt opened this issue 3 years ago • 2 comments

This pull request adds the ability to check if the CSM server is reachable from the outside. When starting the CSM server, a check request is sent to a server hosted by me to check for the open port. The result is displayed in the chat. To check the status again, use the Multiplayer Menu -> Manage Server menu.

The server implementation can be found at https://github.com/CitiesSkylinesMultiplayer/CSMChecker, which is currently running at https://csm-check.kaenganxt.dev.

Some dependencies were also updated.

kaenganxt avatar Jul 17 '22 19:07 kaenganxt

Rust, nice!

Should we also maybe intergrate the version checker into this API as well? (see https://github.com/CitiesSkylinesMultiplayer/Website/pull/5/files for a mockup)

We can maybe cache the latest version (from https://api.github.com/repos/CitiesSkylinesMultiplayer/CSM/releases) and return it via /version or something.

Related to https://github.com/CitiesSkylinesMultiplayer/CSM/issues/271

DominicMaas avatar Jul 17 '22 22:07 DominicMaas

I'll look into it!

kaenganxt avatar Jul 18 '22 18:07 kaenganxt

All happy with this?

DominicMaas avatar Aug 20 '22 03:08 DominicMaas