79412228

Date: 2025-02-04 15:51:38
Score: 1
Natty:
Report link

I got a same error: "java.net.ConnectException: Connection refused", when I did remote debugging my local web server from a Java applicaiton.

Finally I found the problems:

  1. The "https://" was used while it should have been "http://" in my case.
  2. The port specified in the property file should be different from the port used for remote-debugging.

The URL in the property file in my Java application should be accessible and tested from the browser.

After made the above two changes, the issue resolved for me.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: David W