Connecting a standalone container from a container in a Docker Swarm

Hi, I was trying to use Docker Swarm to create and use services. Im trying to run my application using the Service. I was unable to ping or connect to any external IP from the containers that are created using the Swarm. Is there something that Im missing to make the ping or external connections work from inside the containers that were created using Docker Swarm.