Same IP on multiple VM ?

  • Thread starter Thread starter Deleted member 2566
  • Start date Start date
D

Deleted member 2566

Guest
Is there a way to share IP on two VM?

For example, normal webserver should listen on domain.com. And Project-Tool (on own vm) should listen on subdomain.domain.com or domain.com:8080

On same VM this is not Porblem, only Vhost entry, but can i do this on two different VM's? Maybe mit veth
 
I would use private IPs for the VMs, and use DNAT for the redirect (done on the firewall/iptables). This only works if you use different ports.
 
I would use private IPs for the VMs, and use DNAT for the redirect (done on the firewall/iptables). This only works if you use different ports.
Good idea, i neever thought about private IP. Thanks for this hint.
 
I solved it for Hetzner-Server. Keeps the whole Day, but works now.