I'm automating a test against a locally hosted web page and playback fails if the port number changes.
Set the Use dynamic ports property to False and assign a static port number.