Using service links for service discovery

how can i use service links to discover the others containers services and ip address!!