update sample code for latest uv_ip4_addr()