(real) remote debug not possible with Java 11+
Posted: 01 Jun 2020, 15:25
Hello,
To make it short, since JRE 9 , JDWP socket connector accept only local connections by default (source : https://www.oracle.com/technetwork/java ... DK-8041435 )
This means using OWS settings panel with {port} field, the java application will only listen on 127.0.0.1:{port} when launched with JRE 11.0.6 (while with AdoptOpenJDK 8u242 it listens on every interface).
This is normally possible either to pass the wanted address:port or *:port to listen to all network interfaces.
But in OWS settings panel, it's only possible to input the port. When other format are input ==> 'Please input valid port", with is right but didn't help.
Result:
Could change/upgrade the "port" field to "address" to allow to input a full IP:PORT (or at minimal allow or give a way to prefix the port with an address or "*:" ?
Thank you.
PS: By using "TCP forwarding" it is possible to reach the local debugging port remotely, by forwarding a reachable IP:PORT on the machine the java app is running , to the local:port configured in OWS setting on the same machine.
To make it short, since JRE 9 , JDWP socket connector accept only local connections by default (source : https://www.oracle.com/technetwork/java ... DK-8041435 )
This means using OWS settings panel with {port} field, the java application will only listen on 127.0.0.1:{port} when launched with JRE 11.0.6 (while with AdoptOpenJDK 8u242 it listens on every interface).
This is normally possible either to pass the wanted address:port or *:port to listen to all network interfaces.
But in OWS settings panel, it's only possible to input the port. When other format are input ==> 'Please input valid port", with is right but didn't help.
Result:
Could change/upgrade the "port" field to "address" to allow to input a full IP:PORT (or at minimal allow or give a way to prefix the port with an address or "*:" ?
Thank you.
PS: By using "TCP forwarding" it is possible to reach the local debugging port remotely, by forwarding a reachable IP:PORT on the machine the java app is running , to the local:port configured in OWS setting on the same machine.