eclipse 无法连接到远程 VM。拒绝连接。

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12220614/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:54:53  来源:igfitidea点击:

Failed to connect to remote VM. Connection refused.

eclipsetomcat

提问by Deb

I tried to launch my eclipse debug(for server side code) i'm getting the following error Failed to connect to remote VM. Connection refused.

我试图启动我的 Eclipse 调试(用于服务器端代码)我收到以下错误无法连接到远程 VM。拒绝连接。

I did all the configuration of the post below but it still fails. What else can I do to debug the server side?

我做了下面帖子的所有配置,但它仍然失败。我还能做些什么来调试服务器端?

Eclipse : Failed to connect to remote VM. Connection refused.

Eclipse:无法连接到远程 VM。拒绝连接。

Thanks!!!

谢谢!!!

采纳答案by iGili

Assuming the port and url are correct, you might want to check that a firewall (either on your local machine or on the remote host) isn't interfering with the debug. Try to use the host's IP instead it's name (to check for dns related problems). you can also try to capture the tcp packets on the host (Wireshark is an excellent tool for that) to make sure that the packets are reaching the host. if so, it's a problem with the remote jvm's configuration, otherwise recheck the local configurations again.

假设端口和 url 是正确的,您可能需要检查防火墙(在本地计算机上或远程主机上)是否不会干扰调试。尝试使用主机的 IP 代替它的名称(以检查与 dns 相关的问题)。您还可以尝试捕获主机上的 tcp 数据包(Wireshark 是一个很好的工具)以确保数据包到达主机。如果是,则是远程jvm的配置有问题,否则重新检查本地配置。