I've written a program to download the video streamed from different sites to my computer,
everything works fine with youtube or other sites but when I try to get the IP of Metacafe, inet_ntop() returns NULL.

this is the code I'm using: (address will be stored in ip)
Code:
struct hostent *hent;
size_t iplen = 15; //XXX.XXX.XXX.XXX
char *ip = (char *)malloc(iplen+1); //this is our address

memset(ip,
...