Set ip correct ip detection method

This should find the correct global ip for the computer.