IIS Edit Bindings error 80 is an invalid IP address
Synopsis of issue:
You have a website running in Internet Information Services that is already configured with default bindings such as the hostname, etc. ย However, you would like to add another host name to the website to match a CNAME record that you would like the website to answer requests for. ย You go into IIS Manager and right click the website, edit bindings and you get to the add site binding dialog box where you have the ability to type in a new hostname to add to the website. ย However, you receive the error message below telling you that ‘*:80’ is an invalid IP address
Resolution:
The resolution to this issue is in fact quite simple. ย The above error message is telling you the hostname you entered contains something that it shouldn’t. ย If you look at the above screenshot of the error, you will notice thatย https:/// is being entered in front of the hostname in this case which isย somesite.com
The error is due to the fact thatย https:/// is being entered. ย If you think about it, it is very redundant anyway, since you already are telling the server that the port isย 80 you shouldn’t have to include theย https:/// in front. ย That should be implcit.
The solution to the error, is to simply remove theย https:/// from the hostname andย onlyย enter the hostname itself, soย somesite.com. ย Once you take off the extra information, the hostname will enter as expected.