[tcpip-unp] client needs to know server's ip address and port to be connected. server's ip address (sin addr) and port number (sin port) fields in the internet socket address structure (sockaddr in) must be in specific formats. this function convert an ip address in ascii command-line argument (for example, "192.10.16.4") into the proper format (sin addr).