create changeIpAddress function