Solved

Two web servers in Windows 2003 server

Posted on 2006-07-02
13
210 Views
Last Modified: 2008-03-17
Hi,
I have windows 2003 server and two IP addreses, on one IP I run OMNIHTTP web server and on another IP I want to run IIS web server. Unfortunatelly IIS does not start, it says that service is in use. I think it is something wrong with Port, as I understand OMNIHTTP use 80 port and IIS can't bind to it.
Any suggestion how to solve this problem? I know that it is possbile to run two web servers on the same machine but don't know exactly how to do that.

Tomas
0
Comment
Question by:Tomazaz
  • 7
  • 5
13 Comments
 
LVL 95

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 250 total points
Comment Utility
Change the port that one of the HTTP services use.
0
 

Author Comment

by:Tomazaz
Comment Utility
I want to host web page and point domain to web server. So if I change port, it will not work. Right?
0
 
LVL 82

Accepted Solution

by:
oBdA earned 250 total points
Comment Utility
You need to bind the IIS web page to only one IP address (in the properties of the page), and tell Omnihttp to bind only to the other IP address (however that works with this software). So the problem is not with the port, it's that currently Omnihttp is listening on all addresses.
0
 

Author Comment

by:Tomazaz
Comment Utility
>>You need to bind the IIS web page to only one IP address (in the properties of the page), and tell Omnihttp to bind only to the other IP address (however that works with this software).

I have done so. I have entered one IP address in OmniHTTP and second in IIS.

>>So the problem is not with the port, it's that currently Omnihttp is listening on all addresses.

If I change IIS port from 80 to 81, IIS starts without problem. Does it means that problem not in IP but in Ports?

0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
Open a command prompt and enter
netstat -a -n -b
to find out which process is using port 80 currently.
Or download Sysinternal's TCPView (http://www.sysinternals.com/Utilities/TcpView.html) to do the same with a graphical interface.
0
 

Author Comment

by:Tomazaz
Comment Utility
I have got result below. 65.23.156.MyFirst - is my first IP address, I have removed last digit for security reason.

......
 TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       2692
 [OHTTPD.exe]

  TCP    65.23.156.MyFirst:80         4.255.236.124:1583     ESTABLISHED     2692
  [OHTTPD.exe]

  TCP    65.23.156.MyFirst:80         59.167.233.195:50258   ESTABLISHED     2692
  [OHTTPD.exe]

  TCP    65.23.156.MyFirst:80         59.167.233.195:50257   ESTABLISHED     2692
  [OHTTPD.exe]
......
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 82

Expert Comment

by:oBdA
Comment Utility
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       2692
[OHTTPD.exe]

That means that Omnihttp is listening on all IP addresses in the system; you need to disabled this and tell it to only listen on the assigned address, in order to free the port on the other IP address for IIS.
0
 

Author Comment

by:Tomazaz
Comment Utility
Maybe do you know why OmniHTTP act so? I have entered IP address in OMNIHttp to listen only on 65.23.156.MyFirst.
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
Nope, sorry; never worked with this one.
0
 

Author Comment

by:Tomazaz
Comment Utility
It seems that to bind to 0.0.0.0:80 address is behaviour for all servers, just tried with IIS, apache and SAMBA, all binds to IP which is set and additional to 0.0.0.0:80. I can't explain why it should be so but it is.
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
Then it's time for leew's suggestion, or decide for one of the two web servers.
If you currently only have one NIC with two IPs in the machine, you could give two NICs a try as well.
0
 

Author Comment

by:Tomazaz
Comment Utility
I decided to keep only one web server, I will try to host our portal on IIS, the main problem that from IIS 6.0, IIS does not allow to execute programs, for example code below get permission denied though our script and program to run has proper rights.  Anyway this question will be posted in new thread.

asp
<%
set objShell = Server.CreateObject( "WScript.Shell" )
objShell.Run( "programtorun.exe" )
%>
0
 

Author Comment

by:Tomazaz
Comment Utility
After digging information for three days eventually I have found that it is possible to bind two IP addresses to 80 Port. The links below describe how to do that if one web server is IIS.

http://support.microsoft.com/?id=813368
http://www.nesstar.org/Release-free/Nesstar_Socket_Pooling.pdf
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Live backup of a server 11 87
DHCP restore question Server 2003 to 2012 3 40
GPO Access denied in AD 12 33
SolarWind and DNS Server 12 33
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now