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.