Only coerce :port if it's actually a string.