Link to home
Start Free TrialLog in
Avatar of paradigm_IS
paradigm_IS

asked on

Second IP address is not appearing as a binding choice in IIS 7.5

Hi.  Currently, we have a test site up and running.  We are looking to add a second test site to our IIS 7.5 server.  I'm using these instructions:

https://www.youtube.com/watch?v=uhWZIlgiTk4

I have added another IP address to the ethernet adapter.  Everything seems to work, I can ping it from other servers, etc... but the ip address does not appear in IIS when I go edit the bindings.  It's not showing in the drop down.

I have tried restarting the service, restarting the server.   I also tried manually adding  it in, the site doesn't load.

One thing I noticed is if I do a netstat -a , it doesn't appear that ip is listening to anything.  so I added in this line: netsh http add iplisten xx.xxx.xx.xx (new ip), but it still didn't work, and it also took down the existing test site.  So, I deleted that iplisten line.

Any ideas?
Avatar of becraig
becraig
Flag of United States of America image

Can you provide an ipconfig /all for that server.

You can also just try resetting the TCP stack
netsh int ip reset c:\resetlog.txt


Also run:
appcmd list sites  

These details will help to identify the issue and find a solution.
Avatar of paradigm_IS
paradigm_IS

ASKER

the ip address exists when I do an ipconfig /all.

Tried resetting the tcp stack.  readded the ip's and rebooted.  Still doesn't show up in iis.

The results of the appcmd list sites command doesn't seem to help much:

SITE "Default Web Site" (id:1,bindings:http/xx.xxx.xx.12:80:testsite1.com,net.tcp/808:*,net.pipe/*,net.msmq/localhost,msmq.formatname/localhost,https/xx.xxx.xx.12:443:,state:Started)
SITE "testsite2" (id:2,bindings:http/xx.xxx.xx.13:80:testsite2.com,state:Started)
Looks like this might be an IIS bug in the UI

See a previously answered question:
https://www.experts-exchange.com/questions/25347559/Windows-2008-IP-Address-not-showing-up-in-IIS-7-bindings-list.html

Just go ahead and enter the address manually in IIS when adding the new binding.
Hmmm... I already tried that.  see above:  "I also tried manually adding  it in, the site doesn't load."

Does something in the host file need to be edited?
No host file changes need to be made to create a mapping to to an ip in IIS (unless the DNS name you are adding is not resolvable)

Try doing this from appcmd:
Set appcmd =C:\Windows\System32\inetsrv\appcmd.exeSet SiteName=Default Web SiteSet IP=192.168.0.1:80Set FQDN=www.contos.com

%appcmd% set site “% SiteName%” /+bindings.[protocol='http',bindingInformation='%IP%:%FQDN%']

Reprinted from:
http://blog.billbrockbank.net/2010/06/21/configuring-iis-7-site-binding-with-appcmd-exe/

It seems like something about your IIS might be hosed, but this command should help.


If your problem is that the site was created and manually bound to the IP and you are unable to call it using the hostname, then try running :
ping <host-header>

If that does not resolve, then you need a host file entry or DNS entry.
ASKER CERTIFIED SOLUTION
Avatar of becraig
becraig
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You do not need a second IP if you are willing to use host headers.  What this means is that instead of IIS binding to an IP, it will bind to a FQDN name.  This way you could add multiple sites by using just one IP address.  Refer to technet article below:

http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx
becraig.  That hotfix worked.  I also had to add the site to the host file with the new ip address.  After that, it was golden.

Thanks man.