Search code examples
javaamazon-web-servicesamazon-elbnlb

Unhealthy targets on NLB


I am trying to deploy a java application running on port 8081 running behind a network load balancer. Now I am not sure what I am doing wrong but the health checks are failing.

Following are the details of what I have configured -

Listener listening on port 443 (TLS), forwarding traffic to a target group on TCP port 8081.

I have checked the port on the instance by running netstat -ltpn and it shows java is running on port 8081. So what could be the problem?

Thanks in advance.


Solution

  • Found that firewall for port 8081 was blocked in golden AMI. Had to open it using firewall-cmd.