Built-In Web Server
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 later.
Open a file in a web browser
Right-click a file and select Open in Browser.
From the main menu, select View | Open in Browser.
Use the browser popup in the top right part of the editor window. Click the browser button to open the web server file URL, or Shift+Click it to open the local file URL.
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.
Configuring the built-in web server
To customize the parameters of the built-in web server, in the Settings/Preferences dialog (Ctrl+Alt+S), go to .
Use this spin box to specify the port on which the built-in web server runs. By default this port is set to port 63342 through which IntelliJ IDEA accepts connections from services. You can set the port number to any other value starting with 1024 and higher.
Can accept external connections
If this checkbox is selected, then the files on the built-in server running on the specified port are accessible from another computer.
Allow unsigned requests
| For security reasons, any request to a page on the built-in server from outside IntelliJ IDEA is by default rejected and the following authorization popup is displayed: To access the requested page, click Copy authorization URL to clipboard and paste the generated token in the address bar of the browser. |
However this behavior may be annoying, for example, it may block your debugging session if manual intervention is impossible. To suppress displaying the authorization popup, select the Allow unsigned requests checkbox.