Removed deprecated inet_addr, use inet_pton for ipv6 compatibility instead