Setting hostname and IP