DEV Community

Discussion on: How to make your web server better and more stable

Collapse
 
drusac profile image
Dominik Rusac
  1. If you have a static IP then you don't have dynamic IP problem so your setup should be easier and more stable. Other than that settings are pretty much the same.

  2. In both internal and external host you should enter IP address of your virtual machine. That way through the ports traffic will be routed to your server (virtual machine).

Sorry for later reply, didn't get notification, hope that helps.

Collapse
 
africaorginal profile image
blackman • Edited

Thanks! Please is possible to use my public IP address for all my virtual machines? Instead of port forwarding through my local network(Lab). I will like to sell some of my virtual machines to my friends for hosting their site like digital ocean and other vps hosting platforms. Any ideas?

Thread Thread
 
drusac profile image
Dominik Rusac

Yes, it's possible. If you have multiple virtual machines that means you have multiple servers. Your network has one public IP which you said is fixed. To differentiate those VMs you could expose them through separate ports in you router settings. Every VM has it's own local IP address, you will use that address to point to each VM through chosen port on router settings.

Thread Thread
 
africaorginal profile image
blackman

Thanks! Very much for your response i really appreciate it.