modify hostname and port