get host and ipv4