Unable able to connect to container with AWS Public IP

I have a question. I’m running a docker EC2 host in AWS, which is running Docker CE latest edition and UCP. When I spin up a docker containers lets say for Jenkins and even exposed ports I’m unable to connect to Jenkins container UI from my AWS EC2 instance public IP address. My security group is any any so no restrictions.Any idea how I can access the container UI?