Set ip correctly