get server hostname/IP and port to connect in case of client mode
add Inet_pton wrapper function