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

asked 6 months ago370 views
3 Answers
0
Accepted Answer

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

answered 6 months ago
0

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

profile picture
EXPERT
answered 6 months ago
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

answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions