Setting Both Wamp & IIS on 80 Port (no need of 81 now)
Yes, Finally we are able to use both Wamp and IIS both on 80 port, but you need two Different IP Address on same server, one will server Wamp Server and other will serve IIS.
Old Style and the easy way. Assign different port numbers in IIS and WAMP. They will work without any problem like for IIS Site http://localhost and for Wamp Site http://localhost:81 but what if we don't want to show :81 to customer ? :)
So this is better to use a proper Trick for this.
Step By Step Different IPs and same port:
There are some changes in your registry, which will allow us to use IP address for Wamp server. Many guys try to use this scenario but unfortunately IIS occupy all IP address pointing to 80 port, so even if we will try this we are not able to get wamp page.
In My Case
10.10.10.31 is for http://domain0.com on IIS
10.10.10.32 is for http://domain1.com on IIS
10.10.10.33 is for http://domain2.com on Wamp
Now Adding IP Address to server:
1.Open Network Connection and open Internet Protocol TCP/IP Properties & add manual IP, gateway, and DNS.
2. Click Advance.
3. In IP Setting tree and IP Address Click Add
4. add all other IP Addresses one by one
5. Now Click Ok, 3 times :) and then close.
Now when you IP Addresses are added, you need to trick with IIS (using registry). I am not describing here how to assigning different IP Addresses to different website in IIS.
Registry Setting:
Step1. Stop the HTTP service
net stop http in command prompt.
If this command prompts any question about stopping some services, say yes.
Step2. Edit the registry. (You better backup the registry before playing around with it ;))
i. Click Start, click Run, type regedit, and then click OK.
ii. In Registry Editor, locate the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList
If you don’t find this, no harm. Create one multi-string value in the same name.
iii. Make sure it has only the IP addresses that you want your IIS to listen. In my case, 10.10.10.31 & 10.10.10.32.
One IP address per line.
Guess what? IIS doesn’t know about 10.10.10.33 anymore. :)
Step3. Start the HTTP Service.
net start http in command prompt.
You have to start couple of services in MMC as well. (HTTP SSL and World Wide Web Publishing Service)
Now, you can run both the web servers together on same port number. Of course, different IP addresses.
10.10.10.31:80 is IIS Website
10.10.10.32:80 is also IIS Website
10.10.10.33:80 is WAMP website.
In fact, 10.10.10.33 is sole property of WAMP now. IIS can’t use this IP address with any port number.
That's All, Good Luck!