use hostname instead of ip