Built-In Web Server
In this section:
IntelliJ IDEA has a built-in web server that can be used to preview and debug your application. This server is always running and does not require any manual configuration. All the project files are served on the built-in server with the root URL
http://localhost:<built-in server port>/<project root>, with respect to the project structure.
Integration with the built-in Web server is supported in IntelliJ IDEA 11.1 and higher.
Configuring the built-in web server
If necessary, you can customize the parameters of the built-in web server. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing for Windows and Linux or for macOS, and click Debugger under Build, Execution, Deployment.
Opening a file in the browserDo one of the following:
- Choose on the main menu or press Alt+F2. Then select the desired browser from the pop-up menu.
- Hover your mouse pointer over the code to show the browser icons bar: Click the icon that indicates the desired browser.
Note that if a Deployment server is defined for this project and marked as default, the file will be served from this server instead. If necessary, you can still open the page via the IntelliJ IDEA built-in web server. To do this, open the desired browser and type the URL of the file with respect to the project structure, using
http://localhost:<built-in server port>/<project root> as the root URL.