How to Enable IIS on Windows 11 and Test Localhost

Internet Information Services (IIS) is an optional Windows web server. To test a local site on your Windows 11 PC, enable its web service and management console, then open localhost in a browser. You need permission to change Windows features. To host file transfers for an FTP client, configure a separate FTPS site with a trusted certificate.

Enable the Windows features

  1. Search Start for Turn Windows features on or off. Expand Internet Information Services.
  2. Select World Wide Web Services. Under Web Management Tools, select IIS Management Console if you want the graphical management tool. Use the default web service features for a basic test.
  3. Select OK and let Windows apply the changes. Restart if prompted. Open a browser on the same PC and enter http://localhost in the address bar.

If the IIS welcome page does not appear

Open Internet Information Services (IIS) Manager from Start. Expand the server and Sites. Check whether Default Web Site is started. Its HTTP binding determines the address and port the browser should use. If another local server already uses the port, identify it before changing the binding or stopping any services.

For an application that needs ASP.NET Core, enabling IIS is only the web server portion. Follow Microsoft’s IIS hosting requirements for the additional software. To remove an unused test installation, return to Windows Features and clear the IIS components you enabled, after checking that no local application depends on them. Use the Windows 11 event logs to investigate startup errors.