print ipaddress to buffer