How to run two websites on the same connection

random424232

Distinguished
Jun 7, 2012
84
0
18,630
Hey everyone!

I currently have one home WWW server running on port 80 which is obviously the HTTP port. If I wanted to run another web server on the same connection, how would I do this? Is it possible? Obviously, I can't port forward the same port for more than one IP. Any explanations would be greatly useful! 😀

Thanx!!
 
Solution
The fundamental problem is that you can’t associate/map the same port # used by multiple internal IPs, to a single external public IP. It’s just not possible. OTOH, nothing prevents you from acquiring a second public IP and port forwarding that over the same port # to another machine. Of course, that usually comes at additional cost from the ISP. Also, you’d need a router that supported multiple public IPs and could port forward them independently (e.g., dd-wrt/tomato compatible router). But it simply can’t done w/ a single public IP.

Of course, you could use a DIFFERENT external port # for one of the webservers ( e.g., http:// cyanghost109.com:8080 ), but I’m assuming you’d prefer not to require the explicit port # for your URL.
The fundamental problem is that you can’t associate/map the same port # used by multiple internal IPs, to a single external public IP. It’s just not possible. OTOH, nothing prevents you from acquiring a second public IP and port forwarding that over the same port # to another machine. Of course, that usually comes at additional cost from the ISP. Also, you’d need a router that supported multiple public IPs and could port forward them independently (e.g., dd-wrt/tomato compatible router). But it simply can’t done w/ a single public IP.

Of course, you could use a DIFFERENT external port # for one of the webservers ( e.g., http:// cyanghost109.com:8080 ), but I’m assuming you’d prefer not to require the explicit port # for your URL.
 
Solution


Alright, thanx for the answer! I'm going to have to get a router that allows firmware flashing and I will look into DD-WRT. Thanx again!