why is it that when we make a client progam, we pass the ip of the host we want to connect to like this:
their_addr.sin_addr = *((struct in_addr *)he->h_addr);
but this does not work:
their_addr.sin_addr.s_addr = inet_addr("192.168.1.3");
but when we make a server program this works:
local_addr.sin_addr.s_addr=INADDR_ANY;