Apache livy in EMR

I spinned up an EMR cluster in localstack. The EMR has livy installed, so it exposes the 8998 port. I tried adding that port to the localstack docker compose file, but im not being able to reach livy.

Usually, in AWS i can reach livy using the Master public DNS or it’s ip, but im not finding how to reach it in here.

Is there any way to make a request to apache livy in localstack?