Ok, I've looked at that project and it seems to get in an infinite loop. The sHostIP never changes and as it's being compared at one point to get out of the loop - it never makes it.

Is this just me being thick?