The "remote" Tomcat (or, in general, the application server) must be configured to allow such a connection.
:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
jpda startup.sh ( .bat) script catalina.sh script.
- Apache Tomcat, : http://wiki.apache.org/tomcat/FAQ/Developing
: (8000 ). , , iptables.
iptables 8000:
sudo iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
, "ufw" - " ", , iptables.
( ) - telnet :
telnet your.distant.host 8000
, , telnet , .