Writing IP address to tag