When you change the IP address of an IIS server then sometimes the listener is stuck to the old IP address. In order to change this follow the below commands.
1. To see what IP addresses is currently listen run:
netsh http show iplisten
2. To delete the address run:
netsh http delete iplisten ipaddress=X.X.X.X
3. To make the listener listen to all addresses run:
netsh http add iplisten ipaddress=0.0.0.0
4. To make the listener listen only to a spesific address run:
netsh http add iplisten ipaddress=X.X.X.X
(where X.X.X.X is the IP address)
Pantelis Apostolidis is a Sr. Specialist, Azure at Microsoft and a former Microsoft Azure MVP. For the last 20 years, Pantelis has been involved to major cloud projects in Greece and abroad, helping companies to adopt and deploy cloud technologies, driving business value. He is entitled to a lot of Microsoft Expert Certifications, demonstrating his proven experience in delivering high quality solutions. He is an author, blogger and he is acting as a spokesperson for conferences, workshops and webinars. He is also an active member of several communities as a moderator in azureheads.gr and autoexec.gr. Follow him on Twitter @papostolidis.