Revert "Added port field to the client struct, and changed name server to use getnameinfo to get ip addr and port"

This reverts commit 1920d8c459daf7da585dd18374f2b16cbb2dcc79.