No route to host when connect using instance private ip address

0

OS: Amazon Linux 2023

I'm able to connect to the local server within the instance using 127.0.0.1, but I receive "No route to host" when connecting using instance's private IP address (e.g. 10.0.22.42). I am able to connect to this IP address from a different instance within the same VPC.

What I need to do so I can connect to a local server in the same instance using instance's private IP address?

Thanks, Kevin

已提问 7 个月前397 查看次数
3 回答
0
已接受的回答

The issue is in the iptables configuration: -P FORWARD DROP

已回答 7 个月前
0

Are you 100% sure the IP address is correct? Any screenshots would be benifical too.

profile picture
专家
已回答 7 个月前
0

Hi Gary,

Thanks for responding. Yes, the IP address is 100% correct. It's like caused by recent version of Docker.

Enter image description here

Running Docker version 24.0.5, build ced0996

已回答 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则