2 PCs running as servers on one static IP address. Is it possible and how do I set it up?
You can have as many servers listening on a single IP address (including your static, public one) as you like, as long as:
- each server is listening on a different port (or NATted to a unique port on your router), or
- there is some sort of front-end service that routes requests to the right physical server on your LAN
In the case of "WAMP" or Apache, the "front-end" service that can do this would be reverse proxies or vhosts.
So your options are:
Continue running two physical web servers on your LAN, assigning each a static private LAN IP. Set your router to port forward incoming traffic on port 80 or 443 to one of your servers, and a different port to the other, such as 8080 or 44344. To access this server, people will have to enter something like http://your-public-ip:8080
or https://your-public-ip:44344
in browsers. There is no way to make DNS specify the port for you.
Continue running two physical web servers on your LAN, assigning each a static private LAN IP. Set your router to port forward incoming traffic on port 80 or 443 to one of your servers. Configure Apache to reverse proxy a specific directory to your other, second server on its LAN IP. Since all traffic for the second server must pass through the first, this can increase load on the first.
If you have two DNS records available to you, you can set both DNS records to point to your single remaining static IP. Run only a single server, and consolidate the site housed on your other server to this remaining server. Use Apache's vhosts feature to deliver the correct site to incoming requests according to the Host header in the requests, which should be different depending on which domain name was used to access.