Code for handling IP address information