including both mapped ports and exposed ports when determining ports and protocols for dependency links