settting hostname as localhost