Keep the hostname and IP address same while migrating the 3.1 SP4 Access Gateway Appliance to 4.0 Access Gateway Appliance.