TRQ-2058. Correct one more small issue with this - I was getting the port numbers as all zeros due to calling ntohl instead of ntohs. Fixed.