Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS and Apache on the same network

Status
Not open for further replies.

zxmax

Technical User
Nov 24, 2003
179
CA
Greeting all, here is what i want to do ,
I have 2 machine connected to a router with private Ip's for each, (with one static public ip, but i could get one more if that would help the issue)

I already have Apache runing on one machine , and i would like to run iis on the second machine, but everytime i run it on port 80, it gives me an error, is there anyway i could make both machine work on port 80 ? any help , or thoughts, please advise
 
I have a similiar set up at home. I have a Linux firewall/router and a Windows XP Pro, both behind my DSL modem. I have Apache running on Linux and IIS running on Windows XP. Theoratically, there is no harm running both web servers at the same time using the same port. There should be no interference whatsoever as each machine has its own private IP. If you tried to access both webservers from the inside of your LAN, there should be no problems. So if you say you have errors when you use port 80 for the IIS, you might want to be more specific as to what the 'error' is.

The only thing that i see can go wrong is when you try to access port 80 from the outside of your LAN. People accessing port 80 from your public ip will not see your webserver until you do some sort of port forwarding. You will need to port forward port 80 on the public ip to port 80 on the private IP.

If you do port forwarding, obviously you cannot have port 80 on the public ip forwarded to two different private ips. Either you get another public ip and forward each of them to different private ips OR you use one public ip and port forward port 80 and another port (for instance port 8080) for the second machine.

The end result would be something like:

<-- points to Apache port 80 on PC1
<-- points to IIS port 80 on PC2

Hope that helps.
 
thanks for the reply
i have one problems, when i did a netstat , i got 0.0.0.0:80 that is why i can't start iis on port 80 .. did anyone have seen this before ? or how to stop what ever service that is ?

Thanks
 
one more thing, when i go to 127.0.0.1 i get a blank page, looks like there is a web server runing, anyway how to determine what it is and stop it or uninstall ??

Thanks agian in advance for any inputs,
 
What OS are you running? Try looking under Services to see whether there is any sort of webserver running.
 
i just resolved the problem, i had apache installed, but i just had to reboot the machine, that resolved the problem, Thanks Serbtastic for that tool,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top