In general, every device that interacts with the Internet has a private IP. This can be used within the network.
In the WWW, all devices in your network are using the same IP.
Every device usually also has such an IP. For me these usually start with 85…
Visit the following URL with your PC: https://www.wieistmeineip.de/.
The public IP address with which you are traveling is displayed there.
In many cases it can be a problem with online games that the ports are not open or that your device does not have a correct connection to the outside world.
Therefore you would have to give us further information, what kind of server it is, what operating system and more.