Make ip assignable to codes