Container listening to other container's exposed port

I have two containers running on the Docker. One is exposing a port and the other are supposed to listen to the port. How can this be achieved?