The short answer is: do it as you would with 2 physical machines.
There must not be 2 machines with the same public IP, they will conflict. You could use load balancing, or separate services between the machines and use some proxy, or may be something else.