how to handle multiple servers through one client

hi,
i want to go make a client-server code in which the client has all the addresses of the clients saved.i tried to do it through array.this code is application specific.in this code ther client connects to a server with the help of already stored ip addresses in memory.after connection the clients communicates with the server and then the connection is over and the same thing hjappens with the other server.i dont want to do it through fork or multithreading.just want to save ip adresses of alkl the server and poll through them.please can anyone help me in that.this is the code i wrote,
#include<string.h>
#include<stdio.h>

main()
{
char ipadd[2][20]={ "111.111.111.11", //ipadresses are not real
"222.222.222.222"};
char hostnm[20];
int i;
for(i=0;i<2;i++)
{
strcpy(hostnm,ipadd*);*
//client socket code
}
}
is this code correct