Where to store the project version ?

Hello,

I have a multiplayer game and I would like to setup a build version each time I package the project and publish it. For this I am planning to have some automated stuff in a CI pipeline.

My question is, I would like to display the build version on home screen, and use the build version when creating server so that user can only join server using the same version.

For that reason, I need something safe and not easily tamperable by users.

What is the recommended way ? I know about the Project Version in the Project Description but I am unsure how would that fit into this case has I can’t find much information on where it is stored and how it can be modified.

I was planning to store an encrypted version number in the game binaries and decode it on lunch, just to reduce the possibility of it being changed. But I wonder what is the recommended way to do it.

Thank you