A query in Initializing as a client in multiplayer game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Help me please

I just want to ask that when creating a client for multiplayer games do we have to use server’s IP address or can we use 127.0.0.1 as the IP address. I want it to be played from different devices.

:bust_in_silhouette: Reply From: timothybrentwood

127.0.0.1 is known as the loopback address or localhost so it always points to the device that the application is running on. So I’m pretty sure you’re going to want to connect to the server’s IP address unless I’m missing something with your question.