Module to handle IP address calculation