I want to run my java code on a remote server for faster speed (The server is very powerful). What I want is to connect my Intellij to that remote server and run my code. Bu
If you need to debug your web application running on remote server you can do it this way:
Deploy your code to remote server. There are several ways to do it:
Settings > Build, Execution, Deployments > Application Servers and add your application server there. You could later use it as deployment target. See documentation.Connect to server in debug mode. To do this you need to create separate Run/ Debug configuration in IDEA. If you have Enterprise Edition you could choose configuration template for your server (e.q. Tomcat Server) and choose server from your Application Servers list. In Community Edition you have to use default Remote configuration instead.
When setup is done, your workflow should be the following: