use hostname instead of localhost