set ip and hostname