Stop hardcoding ports in several places

Using default attributes is just safer.