Parameterise port and ip. Plus fixup start order for testing.