Redefine ports in custom def.