Has always an error. Change : inet_addr convert IP to char* for the structure