use inet_pton instead of inet_addr (fixed CE)