Tomcat Remote connect failed
Answered
Hello, I will debug with remote tomcat,and i success in the first time.Now,i want change to another server and reconfig the remote server address to the new.but, when i start debug, my idea always try connect to the old server. what can i do? thank you!
The error like this.
10.0.0.129 is the new server and the 10.0.0.127 is the old one.
Error running 'Unnamed'
Unable to connect to the 10.0.0.129:1098, reason:
java.rmi.ConnectException: Connection refused to host: 10.0.0.127; nested exception is:
java.net.ConnectException: Connection refused: connect
my configuration like this

Please sign in to leave a comment.
It doesn't works fine. After i do this, i get the same error again.
I was remove the configuration files ".IntelliJIdea2018.1" in my user directory, and reconfigure my idea, and i always get the same error.
Try to delete Run/Debug configuration and add a new one from scratch. You also have remote staging configured via FTP SERVER. Did you update the FTP SERVER deployment configuration to the new server address as well?
I have same issue in intelij 2019.2 now, I had old setting work fine, and after IP update of remote machine and reconfiguring, IDEA tries to connect to old IP. FTPS server was reconfigured as well, generally - I removed old IP from all possible config windows in IDEA and made restart/invalidate cache - but it still tries to connect to old IP.
I have also tried to remove run config completely and create new from scratch - it did not help, it stil tries to connect to old IP that was once there
OK, the issue is solved - it is not IDEA related. The exception was already on tomcat side - apparently tomcat environment had hardcoded local host to its external IP address, after launching tomcat jvm with proper IP in env the problem is gone (most probably it will be in tomcat/bin/setenv). I may suggest that issue raised by author has the same origin.