I'm trying to debug a machine that is located in China (very far from here) and the connection is very slow. The timeout of intellij remote debugger is short and therefore I'm getting Unable to open debugger port : java.net.ConnectException "Connection timed out: "
And I can't debug. Is it possible to increase the connection timeout? and how?
Try add -Djava.net.connectiontimeout=<seconds>
to <IDEA_install_path>/bin/idea.vmoptions
and restart IDEA.
But firstly ensure that port is opened and host is accessible, for example you can try to connect with telnet
/another program.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With