Hey @Hannah, so sometimes what happens is that the target, which is an EC2 instance in your case tries to connect with itself. When it does that it has the same source and destination IP. Such packets are ignored and fail to send a response and the connection fails.
Use the IP target type for your network load balancer:
- Create a new target group for the load balancer.
- For Target type, choose IT.