Save localHost and localPort unconditionally