I have a typical in-house cluster with a login node and multiple compute nodes. For a start, I ran a JVM instance with the following params to let my IntelliJ debugger connect to it.
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
This login node has a pubically accessible address which I mostly ssh into to launch jobs. However, when I try to attach my IntelliJ debugger to a JVM instance on this node, the connection just times it and it is unable to connect while my JVM instance is indeed launched in the suspended mode waiting for the debugger to connect to it.
Update: The initial problem seemed to be that I get not access any other port on my server other than port 22 which I use to SSH into it. Anyhow, I was able to create a SOCK5 proxy, configured IntelliJ to use that proxy and then successfully test the connection as well as shown below:
The output on the debugger console shows that IntelliJ was successfully able to access that port on the specified hostname, albiet with an HTTP request and not a JWP one.
However, when I then proceed to connect the debugger to the same host:port combination, I am unable to do so and get the following error:
I have also tried setting suspend=n
but to no avail.