Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

"network location cannot be reached"  error with multiple ip's

Posted on 2008-09-30
3
Medium Priority
?
916 Views
Last Modified: 2012-05-05
I have a few sites on an IIS6 server. The web sites which are attached to a certain ip address work fine.
The other web sites which are attached  to other ip addresses give a
"network location cannot be reached... " error when I try to start them.

I did a httpcfg query iplisten and noticed there's a single ip address listed. It's the one which the working sites are using.

So I used the httpcfg to add the rest of the ip addresses and rebooted.
I noticed none of the sites work anymore and I get a "process cannot access the file because it is being used by another process" error

So I figured only a single ip address can be bind. So I removed them with the httpcfg command and rebooted and came back to the initial issue.

So what is the issue exactly? Is it correct that only a single ip address should be in the listen list?
Why am I getting the "network location cannot be reached" message? Is it because the ip address is not in the listen list but if I add it, it causes another issue.
I am missing something.
0
Comment
Question by:jentel2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Expert Comment

by:Andres Perales
ID: 22608884
If you have multiple websites on one webserver, you will need to add multiple IP addresses to the server.
How to assign multiple IP addresses to the same NIC

If you want to assign more than one IP address to a network card follow the steps below. Right-click on My Network Places, choose Properties. Right-click on the Local Area Connection, choose Properties.

Highlight Internet Protocol (TCP/IP), click Properties.

If you use DHCP, you should disable it: click Use the following IP address and enter IP address, Subnet mask and Default gateway. Click Advanced... at the bottom.

Enter additional IP addresses: click the Add... button and enter a new IP address and Subnet mask.

Once you have done that then you can open IIS Manager, and you can then assign a separate IP address to each separate website that you have listed in IIS.
You will need to have a separate IP address for all the websites or for the websites that you want to use the same leave the drop down setting as unassigned and then make sure you use host headers for those websites.
As long as you are using host headers for the websites that are unassigned or a separate IP address for each of the sites you should not have a problem.
Hope that helps.
0
 

Author Comment

by:jentel2
ID: 22609419
I forgot to mention these addresses are already on the nic.

IIS manager wouldn't show these addresses if the server didn't have them in its tcp/ip configuration.

The host headers are set up correctly. Also the absence of them or wrong values will not cause the error I am having. Host headers are used when a request comes in, not when I try to start the web site.



0
 

Accepted Solution

by:
jentel2 earned 0 total points
ID: 22629837
After some more troubleshooting, the solution was to use httpcfg to add ip addresses without specifying post numbers.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 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