javatomcattomcat9java-13

Unable to connect to tomcat 9 for remote debugging via eclipse


My spring web app is deployed on a different machine with below env:

window machine

apache-tomcat-9.0.67

jdk-13.0.2

I tried to remote connect it via eclipse by adding below command in startup.bat or catalina.bat

set JPDA_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n 

and then running

catalina.bat jpda start

The server in the console is showing that the "Listening for transport dt_socket at address: 8000" But when i try to connect with the eclipse, I am getting below errors:

Failed to connect to remote VM. Connection timed out

I also tried mentioning address=*:8000 in place of address=8000 in the above line.But still i am getting Connection timed out error. any suggestion for the resolution of the issue?


Solution

  • As it is pointed out by @tgdavies it was because of the firewall..Now, I can connect it via eclipse