How to run the Dashboard and portal on different ports

Unfortunately its not possible to run the Dashboard and Portal on different ports, they must use the same port.