port

Returns the Location object's URL's port.

Can be set, to navigate to the same URL with a changed port.

MDN Reference