Fix swapped ip and hostname