flip ip address functions and relocate host routine